fix: the mathjax missing in feed.
This commit is contained in:
parent
2815d74922
commit
e5eb9c6907
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -76,6 +76,7 @@
|
|||||||
"jmoiron",
|
"jmoiron",
|
||||||
"jungshik",
|
"jungshik",
|
||||||
"junkfix",
|
"junkfix",
|
||||||
|
"katex",
|
||||||
"khalil",
|
"khalil",
|
||||||
"khtml",
|
"khtml",
|
||||||
"koanughi",
|
"koanughi",
|
||||||
|
@ -58,6 +58,7 @@ const cleanupContent = async (html: string) => {
|
|||||||
return node;
|
return node;
|
||||||
},
|
},
|
||||||
sanitize({
|
sanitize({
|
||||||
|
dropElements: ['style'],
|
||||||
dropAttributes: {
|
dropAttributes: {
|
||||||
class: ['*'],
|
class: ['*'],
|
||||||
'data-astro-source': ['*'],
|
'data-astro-source': ['*'],
|
||||||
@ -69,7 +70,7 @@ const cleanupContent = async (html: string) => {
|
|||||||
'data-language': ['*'],
|
'data-language': ['*'],
|
||||||
'data-footnotes': ['*'],
|
'data-footnotes': ['*'],
|
||||||
},
|
},
|
||||||
allowCustomElements: false,
|
allowCustomElements: true,
|
||||||
allowComments: false,
|
allowComments: false,
|
||||||
}),
|
}),
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user