FIX: Quoting within code blocks.

This commit is contained in:
Robin Ward
2013-08-29 14:42:31 -04:00
parent 1204eb62c3
commit c99cf64d70
5 changed files with 73 additions and 62 deletions
@@ -6,7 +6,7 @@
@namespace Discourse.Dialect
**/
Discourse.Dialect.replaceBlock({
start: /^`{3}([^\n]+)?\n?([\s\S]*)?/gm,
start: /^`{3}([^\n\[\]]+)?\n?([\s\S]*)?/gm,
stop: '```',
emitter: function(blockContents, matches) {
return ['p', ['pre', ['code', {'class': matches[1] || 'lang-auto'}, blockContents.join("\n") ]]];