m->d: Only care about data-mx-spoiler on span

This commit is contained in:
Cadence Ember 2024-02-13 20:47:10 +13:00
parent fd11e3fd10
commit f79833c444

View file

@ -87,7 +87,7 @@ turndownService.addRule("blockquote", {
turndownService.addRule("spoiler", { turndownService.addRule("spoiler", {
filter: function (node, options) { filter: function (node, options) {
return node.hasAttribute("data-mx-spoiler") return node.tagName === "SPAN" && node.hasAttribute("data-mx-spoiler")
}, },
replacement: function (content, node) { replacement: function (content, node) {