diff --git a/plugin/markdown/example.html b/plugin/markdown/example.html
index 364e866f..36f6a510 100644
--- a/plugin/markdown/example.html
+++ b/plugin/markdown/example.html
@@ -7,7 +7,7 @@
reveal.js - Markdown Demo
-
+
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index 9afee065..4847c7ad 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 + '}'), '\n' );
+ text = text.replace( new RegExp('\\n? {' + leadingWs + '}', 'g'), '\n' );
}
return text;