Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 JekyllRB/Rouge,如何突出显示(但不解释)降价文件中的 Liquid 代码?
IE:
我有一个降价文件:
Blah blah blah, my cool post... here's some code: ```liquid {% assign variableName = 'test' %} ```
在生成的 HTML 中,我想查看实际代码,而不需要 Jekyll 在 markdown 文件中对其进行解释。
我想到了。
使用{% raw %}Liquid 标签。
{% raw %}
``` {% raw %} {{ somevariablewewanttoshow }} {% endraw %} ```