python - Pygments 风格未在 Jekyll 博客中应用

标签 python html css markdown pygments

http://joshhornby.co.uk/2012/11/14/test-test-test.html

正如您从链接中看到的那样,底部的代码只是黄色的。没有应用样式。我已经通过终端安装了 pygments,样式表都在那里并且可以工作。我正在使用 jekyll,因此会创建 Markdown 文件,然后将其转换为 .html 页面。

我在 .yml 文件中也有它作为 pygments: true

编辑: 奇怪的是,我不得不将 .yml 文件中的 markdown 更改为 markdown: maruku。它似乎比以前更有效,但无论我添加什么样式,代码上总是有一个黄色突出显示,而且代码的样式从来没有像我想的那样!

最佳答案

奇怪的是,我不得不将 .yml 文件中的 markdown 更改为 markdown: maruku。现在一切正常。

关于python - Pygments 风格未在 Jekyll 博客中应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13396951/

相关文章:

html - 元素无缘无故相互重叠?

jquery - 无法居中淡入淡出图像 (jQuery)

python - 基于值的 Seaborn 条件颜色

python - 如何使用策略 'mean' 拟合缺失值?

html - 将鼠标悬停在复选框跨度上的背景图像更改

html - slider 图像和背景重复?

css - :nth-child(1) versus :first-child in css pseudo selectors are there any merits in choosing one method over the other?有什么区别

Python HTTP Server - 在不使用 HTTP 模块的情况下创建

python - 从数据框中的其他行中减去行

html - mvc 5 @html.editorfor 类不适合父宽度