我有下一个 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
关于markdown - 如何在 Github Flavored Markdown 上的 html 代码中使用 {{ }} 括号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37834151/