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

features render 部分代码冗余 #1180

Open
1 task
HerbertHe opened this issue Feb 21, 2022 · 0 comments
Open
1 task

features render 部分代码冗余 #1180

HerbertHe opened this issue Feb 21, 2022 · 0 comments
Assignees

Comments

@HerbertHe
Copy link
Contributor

https://github.com/Vanessa219/vditor/blob/master/src/ts/markdown/adapterRender.ts

仔细研究了一下此部分的源码,代码结构都是一致的,Adapter可抽象为对象实例化简化代码。

More TODO:

  • Adapter适配的features代码结构是类似的,可以进一步精简代码结构抽象化,可以外置入插件之中,进一步缩小Vditor本项目体积。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant