Browse Source

Merge pull request #682 from tentacode/patch-1

Indentation issue when using code in a markdown slide
Hakim El Hattab 11 năm trước cách đây
mục cha
commit
2901abccde
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      plugin/markdown/markdown.js

+ 1 - 1
plugin/markdown/markdown.js

@@ -50,7 +50,7 @@
 			text = text.replace( new RegExp('\\n?\\t{' + leadingTabs + '}','g'), '\n' );
 		}
 		else if( leadingWs > 1 ) {
-			text = text.replace( new RegExp('\\n? {' + leadingWs + '}','g'), '\n' );
+			text = text.replace( new RegExp('\\n? {' + leadingWs + '}'), '\n' );
 		}
 
 		return text;