pandao / editor.md

The open source embeddable online markdown editor (component).
http://editor.md.ipandao.com/
MIT License
13.69k stars 2.41k forks source link

如何正确开启Tex功能? #969

Open jquanC opened 1 year ago

jquanC commented 1 year ago

请问下,我需要使用editor.md来编辑一些公式,但是公式语法没有生效。 我看了下readme的Editor.md options and default values:

tex                  : false,          // TeX(LaTeX), based on KaTeX

看起来tex功能默认是关闭的。但是我在项目的editormd.js中修改该行为true后,仍然无法使用。 请问正确的使用/开启方式是什么呢?

fengle1234 commented 1 year ago

认真看官方文档,里面有答案 // Default using CloudFlare KaTeX's CDN // You can custom url editormd.katexURL = { js : "your url", // default: //cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min css : "your url" // default: //cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min };

jquanC commented 1 year ago

谢谢。我发现我之前把editormd.kaTeXLoaded 也改了,这个是不必要的。 现在在后台编辑的时候,可以预览看到正确的公式了。但是在前端的话,公式还是无法正常显示,不过这应该是前端取得markdown+latex文本后如何渲染的问题了

------------------ 原始邮件 ------------------ 发件人: "pandao/editor.md" @.>; 发送时间: 2022年10月30日(星期天) 中午11:43 @.>; @.**@.>; 主题: Re: [pandao/editor.md] 如何正确开启Tex功能? (Issue #969)

认真看官方文档,里面有答案

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>