-
-
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
语言类型相同的代码块只有第一个被高亮 #1718
Labels
Comments
你可以尝试使用Google Prettify: https://liuzhichao.com/2016/hexo-use-prettify-to-highlight-code.html |
好像出在特定语句就会不高亮。。 |
關掉代码高亮选项有問題可以參考 #1811 |
按照 #1710 中提到的方法,更新了highlight.js之后,又将所有未高亮的代码检查了一遍。发现未高亮的代码中存在不能识别的字符,导致highlight.js无法识别语言,比如多种语言混合使用,一些语法错误等。 至此高亮问题基本解决了。也不能算是一个bug了:joy:。。。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
感觉和 #1710 是相同的问题。标记为相同语言的代码块,只有第一个能被高亮。
如:
第一个代码块render出来html的class为
highlight java
,第二个class是highlight
。包括使用
{% codeblock lang:java %}
和两种情况混合使用。请问这是什么原因?
The text was updated successfully, but these errors were encountered: