1
0
Fork 0

m->d underline formatting support

This commit is contained in:
Cadence Ember 2023-08-26 22:59:22 +12:00
parent 7c2fc1536d
commit 58f5c3edf7

View file

@ -37,6 +37,13 @@ turndownService.addRule("strikethrough", {
} }
}) })
turndownService.addRule("underline", {
filter: ["u"],
replacement: function (content) {
return "__" + content + "__"
}
})
turndownService.addRule("blockquote", { turndownService.addRule("blockquote", {
filter: "blockquote", filter: "blockquote",
replacement: function (content) { replacement: function (content) {