-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ [Feature]: Markdown MD组件支持暴露语言类名。 #1868
Labels
enhancement
Feature enhancement
Comments
默认的配置里面实际上内置了。只需要在xssWhiteList的白名单开启对应的标签和需要的数据即可。 :custom-xss-rules="customRenderRules" const customRenderRules = ref([
{
key: 'code',
value: ['class'],
}
]); |
用法直接可以后续用来做参考。暂时不提交暴露全部设置的PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve
目前Markdown MD没有暴露语言类名。如果用户使用自定义的语言将无法捕获为其修改样式。
官方有提供API
What does the proposed API look like
生成编辑器的时候带上对应属性即可
The text was updated successfully, but these errors were encountered: