Fix raw tag and correct output

This commit is contained in:
Brian Jones
2017-03-30 09:58:10 -04:00
parent 2f703b30db
commit 4bd5446a4e
+10 -10
View File
@@ -7,16 +7,16 @@ Raw temporarily disables tag processing. This is useful for generating content
(eg, Mustache, Handlebars) which uses conflicting syntax. (eg, Mustache, Handlebars) which uses conflicting syntax.
<p class="code-label">Input</p> <p class="code-label">Input</p>
```text <pre class="highlight">
{% raw %} <code>{% raw %}
{% raw %} &#123;&#37; raw &#37;&#125;
In Handlebars, {{ this }} will be HTML-escaped, but {{{ that }}} will not. In Handlebars, {{ this }} will be HTML-escaped, but
{% endraw % } {{{ that }}} will not.
{% endraw %} &#123;&#37; endraw &#37;&#125;
``` {% endraw %}</code>
</pre>
<p class="code-label">Output</p> <p class="code-label">Output</p>
```liquid ```text
Any contents that you put between {% comment %} and {% endcomment %} tags {% raw %}In Handlebars, {{ this }} will be HTML-escaped, but {{{ that }}} will not.{% endraw %}
is turned into a comment.
``` ```