fixing tests

This commit is contained in:
Cadence Ember 2023-08-30 15:20:39 +12:00
parent 392151a75b
commit 6a04f3f798
2 changed files with 7 additions and 3 deletions

View file

@ -31,7 +31,7 @@ const turndownService = new TurndownService({
turndownService.remove("mx-reply")
turndownService.addRule("strikethrough", {
filter: ["del", "s", "strike"],
filter: ["del", "s"],
replacement: function (content) {
return "~~" + content + "~~"
}
@ -65,11 +65,11 @@ turndownService.addRule("spoiler", {
turndownService.addRule("inlineLink", {
filter: function (node, options) {
return (
return (
options.linkStyle === "inlined" &&
node.nodeName === "A" &&
node.getAttribute("href")
)
)
},
replacement: function (content, node) {