Discourse Meta
部分围栏代码块的自动高亮失效
贡献
错误
bug
renato
(Renato Atilio)
2026 年7 月 28 日 17:49
8
代码未高亮,因为存在一个条件,会跳过任何超过 1k 字符的代码的自动检测。
此 PR
修改了逻辑,使用有界的 2k 前缀来检测语言。
3 个赞
在话题中显示帖子
相关话题
话题
回复
浏览量
活动
Add new highlightjs languages
Support
1
176
2025 年5 月 13 日
Support auto-highlighting for preformatted code
Feature
11
3214
2014 年10 月 1 日
Code highlighting happening when auto-highlighting not enabled
Bug
19
1230
2020 年9 月 29 日
Automatic code highlighting broken in fullscreen code view
Bug
5
347
2024 年4 月 23 日
Code fences don't seem to deal with C comments
Support
26
4708
2015 年10 月 6 日