mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Quotes with text against them had the wrong spacing
This commit is contained in:
@@ -102,6 +102,11 @@ Discourse.Markdown = {
|
||||
var quoteTemplate = null, urlsTemplate = null;
|
||||
|
||||
// Before cooking callbacks
|
||||
converter.hooks.chain("preConversion", function(text) {
|
||||
// If a user puts text right up against a quote, make sure the spacing is equivalnt to a new line
|
||||
return text.replace(/\[\/quote\]/, "[/quote]\n");
|
||||
});
|
||||
|
||||
converter.hooks.chain("preConversion", function(text) {
|
||||
Discourse.Markdown.trigger('beforeCook', { detail: text, opts: opts });
|
||||
return Discourse.Markdown.textResult || text;
|
||||
|
||||
Reference in New Issue
Block a user