FIX: [code] blocks with # headers within

This commit is contained in:
Robin Ward
2013-10-21 12:12:58 -04:00
parent 1783089d64
commit d10f9f756f
3 changed files with 8 additions and 3 deletions
@@ -99,7 +99,7 @@ Discourse.Dialect.replaceBlock({
stop: '[/code]',
emitter: function(blockContents) {
return ['p', ['pre'].concat(blockContents)];
return ['p', ['pre'].concat(blockContents.join("\n"))];
}
});