Coder Social home page Coder Social logo

Comments (12)

star7th avatar star7th commented on August 15, 2024

请从使用的角度去列举下为啥要升级,带来的好处有多少。因为升级成本很大,有很多向后历史兼容问题。
除非能明显提升使用体验,不然不太想花时间去做。

from showdoc.

LinkedDestiny avatar LinkedDestiny commented on August 15, 2024

或者升级一下他内置的katex版本也行,现在默认的0.3.0太坑了

from showdoc.

LinkedDestiny avatar LinkedDestiny commented on August 15, 2024

我尝试hack了一下代码没生效,不知道是设置的不对还是怎么样,不懂前端

from showdoc.

star7th avatar star7th commented on August 15, 2024

列出可重现场景 https://www.showdoc.com.cn/ 说明哪些语法不支持,看看是否真的只是版本问题还是其他问题引起

from showdoc.

star7th avatar star7th commented on August 15, 2024

你在官网新建一个页面放上代码看看

from showdoc.

LinkedDestiny avatar LinkedDestiny commented on August 15, 2024

https://www.showdoc.com.cn/2416714032445402/10735415453747411

访问密码 1234

编辑模式下可以看到未被渲染的内容,同样的内容在katex官网可以被渲染

from showdoc.

LinkedDestiny avatar LinkedDestiny commented on August 15, 2024

https://katex.org/#demo

这个是官网

from showdoc.

LinkedDestiny avatar LinkedDestiny commented on August 15, 2024

核心的问题两个:

  1. 不支持中文
  2. 不支持换行(任意数量的 \ 都不行……)

from showdoc.

LinkedDestiny avatar LinkedDestiny commented on August 15, 2024

确定了,我手动升级到了0.12.0版本,就可以了

from showdoc.

star7th avatar star7th commented on August 15, 2024

你是怎么升级的,可能我可以把它集成到官方仓库里来

from showdoc.

LinkedDestiny avatar LinkedDestiny commented on August 15, 2024

直接替换了代码里面的路径

editormd.katexURL = {
css: 'https://cdn.bootcdn.net/ajax/libs/KaTeX/0.12.0/katex.min',
js: 'https://cdn.bootcdn.net/ajax/libs/KaTeX/0.12.0/katex.min'
}

原来是个 0.3.0 的,现在换成这个路径就行。

from showdoc.

star7th avatar star7th commented on August 15, 2024

katexURL 已经更新到官方库

from showdoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.