Use single line breaks for markdown in comments

pull/177/head
vasya 2023-08-04 10:43:27 -07:00
parent 061b7d6bfd
commit e6cd2c47d5
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,5 @@
marked.use({
breaks: true,
extensions: [
{
name: 'mention',
@ -93,8 +94,6 @@ function markdown(t) {
}
}
if (!input.includes('```') && !input.includes('<pre>'))
input = input.replace(/\n/g, '\n\n')
input = input.replace(/\|\|(.*?)\|\|/g, '<spoiler>$1</spoiler>')
input = input.replace(/(\n|^)>([^ >][^\n]*)/g, '$1<g>\>$2</g>')
input = input.replace(/((\s|^)[0-9]+)\. /g, '$1\\. ')