# 在 GitHub 最近更新页面和 Jekyll 后不渲染 HTML 标题标签

# not rendering HTML heading tags after GitHub's recent update for pages and Jekyll

本周,GitHub announced that it will only support kramdown for its product Pages

根据他们的建议 - 我 removed markdown: redcarpet and updated highlighter value to rouge in the _config of my project.

现在唯一的问题是 # 无法在 main website

的任何页面上呈现为标题

side question: Is there anything else to watch out for?

Github 在页面更新中默认启用 kramdown’s GFM parser。此解析器所做的更改之一是在 # 和 header 的文本之间要求 whitespace 以将其视为 header.

我不知道您是否能够在您的配置中更改此默认值。 Jekyll docs 描述了如何将 更改为 GFM,但没有描述如何将其设置为任何其他解析器,即使有可能 Github 覆盖它无论如何。

您可能需要更改 header 以添加 space。例如更改所有看起来像这样的行:

#Focus on user

至:

# Focus on user 

至于你的

side question: Is there anything else to watch out for?

是的,您需要注意以下几点:

希望对您有所帮助! ;)