add simple line break

This commit is contained in:
polv committed 2020-12-16 12:35:54 +07:00
1 parent 4fb41de0f1
commit e4e364ae2a
8 files changed
+123 -73

No files matched your search

+10
View File
@@ -22,10 +22,20 @@ export class MakeHTML {
backslashEscapesHTMLTags: true,
emoji: true,
underline: true,
disableForced4SpacesIndentedSublists: true,
metadata: true,
})
constructor() {
this.mdConverter.addExtension(
{
type: 'lang',
regex: /\\\n/g,
replace: '<br />',
},
'commonmark-simple-linebreak'
)
/**
* ! For some reasons default underscore italic fails to render...
*/