Escaping double curly braces inside a markdown code block in Jekyll

前端 未结 5 2000
走了就别回头了
走了就别回头了 2020-11-30 22:17

I\'m using Jekyll to create a documentation site wherein I am trying to document some code that contains handlebars-like syntax. For example {{foo}}. The proble

5条回答
  •  广开言路
    2020-11-30 22:47

    You're looking for the {% raw %} tag.

    {% raw %}
    Hello, my name is {{name}}.
    {% endraw %}
    

提交回复
热议问题