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
1 changed files with 1 additions and 1 deletions

View File

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