fix: export note with math(Zotero 6.14)

This commit is contained in:
xiangyu 2022-08-31 19:15:53 +08:00
parent d5ef329e8d
commit 1272950597

View File

@ -690,6 +690,20 @@ let bundle;
},
};
rules.mathBlock = {
filter: function (node) {
return node.nodeName === "PRE" && node.className === "math";
},
replacement: function (content, node, options) {
return (
"\n\n$$\n" +
node.firstChild.textContent.slice(2, -2) +
"\n$$\n\n"
);
},
};
rules.indentedCodeBlock = {
filter: function (node, options) {
return (