Revert "Use single line breaks for markdown in comments (#177)"
This reverts commit 7812bfb47d
.
pull/180/head
parent
b26dce2321
commit
9080d084e5
|
@ -1,5 +1,4 @@
|
||||||
marked.use({
|
marked.use({
|
||||||
breaks: true,
|
|
||||||
extensions: [
|
extensions: [
|
||||||
{
|
{
|
||||||
name: 'mention',
|
name: 'mention',
|
||||||
|
@ -95,6 +94,8 @@ 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(/\|\|(.*?)\|\|/g, '<spoiler>$1</spoiler>')
|
||||||
input = input.replace(/(\n|^)>([^ >][^\n]*)/g, '$1<g>\>$2</g>')
|
input = input.replace(/(\n|^)>([^ >][^\n]*)/g, '$1<g>\>$2</g>')
|
||||||
input = input.replace(/((\s|^)[0-9]+)\. /g, '$1\\. ')
|
input = input.replace(/((\s|^)[0-9]+)\. /g, '$1\\. ')
|
||||||
|
|
Loading…
Reference in New Issue