如何在 Github Flavored Markdown 上使用带有 html 代码的 {{ }} 括号?
How to use {{ }} brackets with html code on Github Flavored Markdown?
我有下一个 github markdown,其中 {{ product }} 是一个 AngularJS 模板助手:
```html
<div ng-controller="ProductCtrl">
<ul>
<li ng-repeat="product in products">
{{ product }}
</li>
</ul>
</div>
```
很遗憾,输出结果不包含括号:
有什么办法可以解决这个问题吗?
编辑:
这是我的输出html:
Raw 暂时禁用标记处理。这对于生成使用冲突语法的内容(例如,Mustache、Handlebars)很有用。
{% raw %}
In Handlebars, {{ this }} will be HTML-escaped, but {{{ that }}} will not.
{% endraw %}
https://github.com/Shopify/liquid/wiki/liquid-for-designers#raw
我有下一个 github markdown,其中 {{ product }} 是一个 AngularJS 模板助手:
```html
<div ng-controller="ProductCtrl">
<ul>
<li ng-repeat="product in products">
{{ product }}
</li>
</ul>
</div>
```
很遗憾,输出结果不包含括号:
有什么办法可以解决这个问题吗?
编辑:
这是我的输出html:
Raw 暂时禁用标记处理。这对于生成使用冲突语法的内容(例如,Mustache、Handlebars)很有用。
{% raw %}
In Handlebars, {{ this }} will be HTML-escaped, but {{{ that }}} will not.
{% endraw %}
https://github.com/Shopify/liquid/wiki/liquid-for-designers#raw