Skip to content
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

补充gallery文档及快捷插入 #15

Closed
chengzhongxue opened this issue Jan 14, 2024 · 4 comments
Closed

补充gallery文档及快捷插入 #15

chengzhongxue opened this issue Jan 14, 2024 · 4 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@chengzhongxue
Copy link

No description provided.

@justice2001
Copy link
Owner

不好意思哈,先看这个文档吧:https://github.com/justice2001/vditor-halo-render/blob/dev/doc/gallery.md

其他地方的文档还没补全。快捷按钮也还没放。

@justice2001 justice2001 changed the title vditor-halo-render添加组图组件(gallery) 这个怎么使用,我好像没看到这个东西 补充gallery文档及快捷插入 Jan 14, 2024
@justice2001 justice2001 added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 14, 2024
@chengzhongxue
Copy link
Author

我想问一下,就是这样的语法,后面用户可以自己自定义?

@justice2001
Copy link
Owner

justice2001 commented Jan 17, 2024

自定义语法不太好实现,现在这样的语法是在vditor源码上修改的,不太想对vditor有过大的改动。解析器是独立的一个项目:https://github.com/justice2001/vditor-halo-render

现在有个方案就是给其他插件提供注入js和css的功能,其他插件用类似customElement的方法来实现即时渲染的能力。像这样:#11 (comment)

但也会引出一个问题就是vditor其实对HTML的渲染支持并不是非常的友好。暂时还没有想到更好的解决方案。

@justice2001
Copy link
Owner

justice2001 commented Jan 22, 2024

我想问一下,就是这样的语法,后面用户可以自己自定义?

关于这个问题,需要再次回复下,Vditor上游最近已经提供了自定义解析的能力,下个版本开始应该会使用官方版本的vditor,不出意外的话,我会尝试在快捷插入的功能中加入自定义语法的能力。

#21

具体设计方案会在这里补充: https://github.com/justice2001/halo-plugin-vditor/blob/dev/doc/rfc/custom-insert.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants