misc: add markdown to body preview

This commit is contained in:
Xyphyn committed 2023-07-29 12:40:06 -07:00
1 parent 17316b8cdf
commit ba6fc8cbeb
4 files changed
+19 -6

No files matched your search

+1 -2
View File
@@ -10,7 +10,6 @@ export const md = new MarkdownIt({
},
render: (tokens: any, idx: any) => {
console.log('test')
var m = tokens[idx].info.trim().match(/^spoiler+(.*)/)
if (tokens[idx].nesting === 1) {
@@ -23,7 +22,7 @@ export const md = new MarkdownIt({
},
})
export const mdLimited: MarkdownIt = new MarkdownIt('zero').enable([
export const mdInline: MarkdownIt = new MarkdownIt('zero').enable([
'emphasis',
'backticks',
'strikethrough',