diff options
Diffstat (limited to 'js')
| -rw-r--r-- | js/lib/blocks.js | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js index 109661f..175cc2a 100644 --- a/js/lib/blocks.js +++ b/js/lib/blocks.js @@ -366,7 +366,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(/^ *#+ *$/, '').replace(/ +#+ *$/,'')];              break;          } else if ((match = ln.slice(first_nonspace).match(/^`{3,}(?!.*`)|^~{3,}(?!.*~)/))) {  | 
