强调问题:Jekyll+;红地毯==Github风味减价?

强调问题:Jekyll+;红地毯==Github风味减价?,github,markdown,jekyll,github-pages,redcarpet,Github,Markdown,Jekyll,Github Pages,Redcarpet,我正在用github页面构建一个站点,不希望单词中的下划线将这些单词的部分斜体化。例如,此处的函数名不应使用名称斜体显示。我知道github风味的降价应该是这样的聪明;但我仍然在我的渲染页面中看到斜体字 我已在我的\u config.yml中设置 markdown: redcarpet markdown: redcarpet2 redcarpet: extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "ta

我正在用github页面构建一个站点,不希望单词中的下划线将这些单词的部分斜体化。例如,此处的
函数名
不应使用
名称
斜体显示。我知道github风味的降价应该是这样的聪明;但我仍然在我的渲染页面中看到斜体字

我已在我的
\u config.yml中设置

markdown: redcarpet
markdown: redcarpet2
redcarpet:
  extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables",     "with_toc_data"]

。。。要获得Github风格的降价行为,我还需要做些什么?

Github的gh页面上提供的Jekyll版本不运行支持这些功能的最新版本的Red地毯(Red地毯2),在其中,您可以配置您想要的行为,即,然后将其添加到您的
\u config.yml

markdown: redcarpet
markdown: redcarpet2
redcarpet:
  extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables",     "with_toc_data"]

是的,我同意github在gh页面上运行的标记解析器与它在站点其他地方使用的github风格的标记解析器不一样,这看起来很疯狂

从Jekyll 0.12.0开始,Jekyll不需要插件就支持Redru毯2,因此原始问题中显示的方法现在应该可以工作,无需进行额外修改。根据调查,他们现在使用的是Redru毯2.2.2。