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

集成markdown插件wp editor.md等 #73

Closed
MatrixCoder-Chen opened this issue Feb 29, 2020 · 4 comments
Closed

集成markdown插件wp editor.md等 #73

MatrixCoder-Chen opened this issue Feb 29, 2020 · 4 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@MatrixCoder-Chen
Copy link

MatrixCoder-Chen commented Feb 29, 2020

一用上Vue麻烦就多了,其实前台用Vue到目前为止还不是一个明智的选择(后台用一下还是很爽的)。之前我提了一个关于支持mathjax、katex的数学公式建议 #70 ,其实......可以集成插件wp editor.md之类的,我简单看了一下wp editor.md的代码,它的内部实际上是在访问时将md转换为html,那么可以通过简单地捣鼓一下代码就能集成wp editor.md,而且这个插件自带数学公式,岂不是多舒服,而且这个插件还支持一些其他的功能:如代码风格切换、emoj等,还带了一个好用的编辑器,否则在默认编辑器里写md那是什么感受。可能我的思路有点问题,也请原谅

@MatrixCoder-Chen MatrixCoder-Chen added the enhancement New feature or request label Feb 29, 2020
@ttttonyhe
Copy link
Owner

Vue.js 就是前端框架呀,后端用不了的...
使用插件你可以自行安装,主题不会集成插件,因为要了解插件的结构方法等才能将插件嵌入到主题里(也没有必要)
MarkDown 插件你直接安装即可,编辑器的选择也是插件的工作。输出为 HTML,保存在数据库也就是 HTML,那在使用 Tony 主题的时候关闭默认的 MarkDown 渲染选项就可以了。

@ttttonyhe
Copy link
Owner

啊对了,Tony 主题默认的 MarkDown 渲染依赖是 markdown-it,你如果等不及下一个版本更新,可以自行搜索一些 markdown-it 的数学公式渲染插件来使用

@ttttonyhe ttttonyhe reopened this Feb 29, 2020
@MatrixCoder-Chen MatrixCoder-Chen changed the title 集成markdown插件wp editor.md等 集成markdown插件wp editor.md等(嗯,此问题已作废) Feb 29, 2020
@MatrixCoder-Chen
Copy link
Author

唔,原谅我的鄙见,现在了解了一下markdown-it这个插件,其实有支持数学公式的,配合一个插件:markdown-it-katex

@MatrixCoder-Chen
Copy link
Author

MatrixCoder-Chen commented Feb 29, 2020

Vue.js 就是前端框架呀,后端用不了的...

em......回复那么快,刚把“前端”改成了“前台”

@ttttonyhe ttttonyhe added invalid This doesn't seem right and removed enhancement New feature or request labels Feb 29, 2020
@ttttonyhe ttttonyhe reopened this Feb 29, 2020
@ttttonyhe ttttonyhe changed the title 集成markdown插件wp editor.md等(嗯,此问题已作废) 集成markdown插件wp editor.md等 Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants