-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
有些代码不能被高亮是什么问题。。 #1710
Comments
hexo支持的代码高亮不能解析用 ``` 的单行代码高亮么。 比如 github是支持的 比如这句 |
单行不支持,这个取决于Hexo使用的渲染插件,目前官方默认的是marked引擎。 |
@netcan 收到,近期将会进行测试= = |
所以是單行用 ``` 的問題嗎? 是的話就跟#1727 一樣close 掉了 |
@leesei 不是,这个issues的提出者与评论 #1710 (comment) 不是同一个问题。可能是Highlight.js对某些长句子的处理有BUG或者是Hexo在这个方面有点问题。 |
The content of ln 51 is relevant. I think it is a bug of highlight.js
|
Issue opened highlightjs/highlight.js#1104 |
可以考虑换个渲染引擎供用户选择么?。。比如弄成插件形式 |
Highlight.js 9.3.0 fixed the original problem. Discuss using other highlight engine in this issue: #1300 |
好像是某些特定的代码无法被高亮,我这里上传一个无法高亮的代码,请求测试。
我自己测试是第51行的锅,去掉后能高亮
ll ans = (sum(bit0, b) + b*sum(bit1, b)) - (sum(bit0, a-1) + (a-1)*sum(bit1, a-1));
The text was updated successfully, but these errors were encountered: