移除主题配置中的 stylize 选项

This commit is contained in:
2025-05-03 03:58:09 +00:00
parent d983d076f5
commit 1ef347fb4c

View File

@@ -47,19 +47,6 @@ export default hopeTheme({
playground: { playground: {
presets: ["ts", "vue"], presets: ["ts", "vue"],
}, },
stylize: [
{
matcher: "Recommended",
replacer: ({ tag }) => {
if (tag === "em")
return {
tag: "Badge",
attrs: { type: "tip" },
content: "Recommended",
};
},
},
],
math: { math: {
type: "katex" type: "katex"
}, },