mirror of
https://github.com/sendevia/website.git
synced 2026-03-05 23:32:45 +08:00
feat: only allow id and class attributes in markdown
This commit is contained in:
@@ -27,6 +27,9 @@ export default defineConfig({
|
||||
space: false,
|
||||
}),
|
||||
},
|
||||
attrs: {
|
||||
allowedAttributes: ["id", "class"],
|
||||
},
|
||||
cjkFriendly: true,
|
||||
codeCopyButtonTitle: "复制代码",
|
||||
config(md) {
|
||||
|
||||
Reference in New Issue
Block a user