summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/index.html1
-rwxr-xr-xjs/stmd.js2
2 files changed, 1 insertions, 2 deletions
diff --git a/js/index.html b/js/index.html
index 7ba5a86..994b147 100644
--- a/js/index.html
+++ b/js/index.html
@@ -63,7 +63,6 @@ $(document).ready(function() {
div#preview { height: 400px; overflow: scroll; }
div.row { margin-top: 1em; }
blockquote { font-size: 100%; }
- h3 { margin-top: 0; margin-bottom: 0; padding: 0; font-size: 100%; }
footer { color: #555; text-align: center; margin: 1em; }
pre { display: block; padding: 0.5em; color: #333; background: #f8f8ff }
#warnings li { color: red; font-weight: bold; }
diff --git a/js/stmd.js b/js/stmd.js
index 4635b10..16baa59 100755
--- a/js/stmd.js
+++ b/js/stmd.js
@@ -1064,7 +1064,7 @@ var incorporateLine = function(ln, line_number) {
container.level = match[0].trim().length; // number of #s
// remove trailing ###s:
container.strings =
- [ln.slice(offset).replace(/(?:(\\#) *#+| *#+) *$/,'$1')];
+ [ln.slice(offset).replace(/(?:(\\#) *#*| *#+) *$/,'$1')];
break;
} else if ((match = ln.slice(first_nonspace).match(/^`{3,}(?!.*`)|^~{3,}(?!.*~)/))) {