[code] should work just like other kinda of code formatting.
This commit is contained in:
@@ -108,6 +108,7 @@ Discourse.Dialect.replaceBlock({
|
||||
rawContents: true,
|
||||
|
||||
emitter: function(blockContents) {
|
||||
return ['p', ['pre'].concat(blockContents.join("\n"))];
|
||||
var inner = blockContents.join("\n").replace(/^\s+/,'');
|
||||
return ['p', ['pre', ['code', {'class': Discourse.SiteSettings.default_code_lang}, inner]]];
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user