Fix: block parser now uses regexes for end tags. solves code block case, where end tag must be on a line of its own.

This commit is contained in:
Jens Maier
2014-08-14 01:58:01 +02:00
parent 5caf72510c
commit 23002ae01c
5 changed files with 21 additions and 14 deletions
@@ -120,7 +120,7 @@ Discourse.Markdown.whiteListTag('span', 'class', /^bbcode-size-\d+$/);
// Handles `[code] ... [/code]` blocks
Discourse.Dialect.replaceBlock({
start: /(\[code\])([\s\S]*)/igm,
stop: '[/code]',
stop: /\[\/code\]/igm,
rawContents: true,
emitter: function(blockContents) {