aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-04-06 09:56:54 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-04-06 09:56:54 +0200
commit2901abccdedf3a1068975229f496c581e1234174 (patch)
treec1a82c4586aefb38c072467ee741d26b2dbe31db /plugin
parent1d13760f0ee2de7bd698585701f42054c1a46b86 (diff)
parent80aadaf74e901b184d86b536c0c01e0fe98623d0 (diff)
downloadfosdem-2018-presentation-2901abccdedf3a1068975229f496c581e1234174.tar
fosdem-2018-presentation-2901abccdedf3a1068975229f496c581e1234174.tar.gz
Merge pull request #682 from tentacode/patch-1
Indentation issue when using code in a markdown slide
Diffstat (limited to 'plugin')
-rwxr-xr-xplugin/markdown/markdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index 9b0dae9..718475b 100755
--- a/plugin/markdown/markdown.js
+++ b/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;