m->d: Only care about data-mx-spoiler on span
This commit is contained in:
parent
fd11e3fd10
commit
f79833c444
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue