-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
关于 hexo-renderer-kramed 插件导致语法高亮失效的问题。 #23
Comments
我按这个安装后,执行hexo g时报错 41 ERROR Invalid or unexpected token in "/hexo/themes/hexo-theme-matery/layout/archive.ejs" |
@scutem @chunchengwei 你们参考下这篇文章中关于数学公式的解决方案试试,应该可以解决一些,数学公式这个主要是Hexo的Markdown解析器与MathJax有冲突引起的,没啥好的办法。 |
@blinkfox 辛苦辛苦,我看你刚更新了代码 说加入了 mathjax,可否把说明也更新一下,不知道是否需要把 hexo-renderer-marked 换成 hexo-renderer-kramed 。我最近按照别的模板 通过加mathjax.ejs的方法也支持了mathjax但由于把 hexo-renderer-marked 换成 hexo-renderer-kramed,同样遇到了代码不高亮的问题。 我参考的代码是: |
晚上回去更新吧,也还没有推到 |
@blinkfox 已经pull下来了,很好用。 |
@blinkfox 显示markdown的table时出现问题, 错误可以参见这里,而且该文档没有开启mathjax: 这里有人讨论过这个: 不清楚该怎么弄
|
@chunchengwei 跟 |
@blinkfox 确实是我的问题,在哪里整个表格向右缩进了一下,我把缩进去掉就没问题了。但是这个在本地用typora打开是没问题的可以正常显示。但是这里不行。不过确实不是主题的问题。我使用其他的主题试了一下也是这样。 |
为了功能正常,我已经放弃代码高亮了 |
问题
按照这里的说明添加了mathjax 的支持后,发现语法高亮莫名失效了。
重现
排查后发现,执行语句
$ npm uninstall hexo-renderer-marked --save
$ npm install hexo-renderer-kramed --save
把 hexo-renderer-marked 换成 hexo-renderer-kramed 后导致语法高亮失效。
并且问题同样出现在
landscape
主题中。最后
hexo-renderer-kramed
作者已经匿了。。目前尝试了不少方案,都有大大小小的问题。给需要添加
mathjax
的人提个醒。要是有针对
hexo-theme-matery
主题有好的解决方案求告知The text was updated successfully, but these errors were encountered: