-
-
Notifications
You must be signed in to change notification settings - Fork 930
自定义渲染的方法 #350
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
Comments
你好,目前已经提供了自定义渲染接口,会在如下场景回调:
具体代码可搜索 如果你在其他场景需要支持自定义渲染,麻烦详细描述一下需求,我们好内置回调场景,谢谢。 |
markdown 没有标签,你是要渲染以后在标签上添加属性么? |
抱歉,可能我没描述清楚。有两个希望大佬能考虑一下的功能
|
|
明白了,感谢大佬回复 |
thank you for the idea.
|
thanks for your help.I know this problem can be solved by using REGEX, but it's a bit inconvenient and time-consuming because the transformation is performed after rendering. So it's very nice if there is a direct method to make the transformation while rendering. |
@velor2012 @jakekwak We are adding callback scenario |
自定义渲染的方法 Vanessa219/vditor#350
自定义渲染的方法 Vanessa219/vditor#350
@88250 any example? |
Writing, please wait |
文档 https://hacpai.com/article/1588412297062 |
This one is all heading level(1-6).
|
In short, take a look at golang renderer implementation maybe could help, good luck! |
@88250 One last thing, How can I get the text of |
你在什么场景下需要该功能?
前端渲染后台发过来的markdown内容,有的时候需要修改某些标签的属性,class,id等。能给个自定义渲染md的方法就好了。类似markedjs中开放的renderer接口,可以针对,
,
等标签使用自定义的渲染方法。
The text was updated successfully, but these errors were encountered: