mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: New line insertion when a line begins with []
This commit is contained in:
@@ -100,7 +100,7 @@ Discourse.Markdown = {
|
||||
// Linebreaks
|
||||
var linebreaks = opts.traditional_markdown_linebreaks || Discourse.SiteSettings.traditional_markdown_linebreaks;
|
||||
if (!linebreaks) {
|
||||
text = text.replace(/(^[\w<][^\n]*\n+)/gim, function(t) {
|
||||
text = text.replace(/(^[\w<\[][^\n]*\n+)/gim, function(t) {
|
||||
if (t.match(/\n{2}/gim)) return t;
|
||||
return t.replace("\n", " \n");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user