Skip to content
y377 edited this page Aug 28, 2023 · 3 revisions

If you use Jekyll, see here disabled default syntax highlighter

vim _config.yml add highlighter: none

2023-08-28 update

According to my review of the kramdown official website, the previous usage highlighter: none can solve the problem, but it is not a standard way to disable it. The following method is recommended first:

kramdown:
  syntax_highlighter: hljs # 语法高亮器,可以是 rouge(默认)或其他值
  syntax_highlighter_opts: # 语法高亮器选项,针对 Rouge 的设置
     disable: true     # true 为禁用 Kramdown 的默认高亮功能
#  input: GFM # 输入格式,可以是 GFM(GitHub Flavored Markdown)或 Kramdown
#  hard_wrap: true # 是否自动插入换行符

And thanks @joshgoebel