aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2015-01-22 08:46:14 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2015-01-22 08:46:14 +0100
commit44548ba357490943cfa6a2e5139863bd4fc4f66a (patch)
tree37ab0deda5f97d1253b272c46c0884a568906f4e /plugin
parentf032df8f135040b27cfb77f24d56401543ce2add (diff)
downloadfosdem-2018-presentation-44548ba357490943cfa6a2e5139863bd4fc4f66a.tar
fosdem-2018-presentation-44548ba357490943cfa6a2e5139863bd4fc4f66a.tar.gz
add global flag back in for whitespace removal, without it most of the content in example.html does not work #682
Diffstat (limited to 'plugin')
-rw-r--r--plugin/markdown/example.html2
-rwxr-xr-xplugin/markdown/markdown.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugin/markdown/example.html b/plugin/markdown/example.html
index 364e866..36f6a51 100644
--- a/plugin/markdown/example.html
+++ b/plugin/markdown/example.html
@@ -7,7 +7,7 @@
<title>reveal.js - Markdown Demo</title>
<link rel="stylesheet" href="../../css/reveal.css">
- <link rel="stylesheet" href="../../css/theme/default.css" id="theme">
+ <link rel="stylesheet" href="../../css/theme/white.css" id="theme">
<link rel="stylesheet" href="../../lib/css/zenburn.css">
</head>
diff --git a/plugin/markdown/markdown.js b/plugin/markdown/markdown.js
index 9afee06..4847c7a 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;