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",
|
||||
"jungshik",
|
||||
"junkfix",
|
||||
"katex",
|
||||
"khalil",
|
||||
"khtml",
|
||||
"koanughi",
|
||||
|
@ -58,6 +58,7 @@ const cleanupContent = async (html: string) => {
|
||||
return node;
|
||||
},
|
||||
sanitize({
|
||||
dropElements: ['style'],
|
||||
dropAttributes: {
|
||||
class: ['*'],
|
||||
'data-astro-source': ['*'],
|
||||
@ -69,7 +70,7 @@ const cleanupContent = async (html: string) => {
|
||||
'data-language': ['*'],
|
||||
'data-footnotes': ['*'],
|
||||
},
|
||||
allowCustomElements: false,
|
||||
allowCustomElements: true,
|
||||
allowComments: false,
|
||||
}),
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user