# 在 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?
是的,您需要注意以下几点:
dropped gem dependencies:默认情况下不再需要某些 gem,如果要使用它们,需要添加到配置文件和 Gemfile 中;
他们改变了单独调用collections的方式;
他们改变了设置方式 permalinks;
他们引入了一些新功能,如 future
posts and layout
metadata;
希望对您有所帮助! ;)
本周,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?
是的,您需要注意以下几点:
dropped gem dependencies:默认情况下不再需要某些 gem,如果要使用它们,需要添加到配置文件和 Gemfile 中;
他们改变了单独调用collections的方式;
他们改变了设置方式 permalinks;
他们引入了一些新功能,如
future
posts andlayout
metadata;
希望对您有所帮助! ;)