diff --git a/files/assets/js/markdown.js b/files/assets/js/markdown.js index 5c633a6bc..c98eab4e0 100644 --- a/files/assets/js/markdown.js +++ b/files/assets/js/markdown.js @@ -1,4 +1,5 @@ marked.use({ + breaks: true, extensions: [ { name: 'mention', @@ -93,8 +94,6 @@ function markdown(t) { } } - if (!input.includes('```') && !input.includes('
'))
-		input = input.replace(/\n/g, '\n\n')
 	input = input.replace(/\|\|(.*?)\|\|/g, '$1')
 	input = input.replace(/(\n|^)>([^ >][^\n]*)/g, '$1\>$2')
 	input = input.replace(/((\s|^)[0-9]+)\. /g, '$1\\. ')