Skip to content

Commit 2f8d447

Browse files
authored
Wrap capture example in {% raw %} and highlight it as Liquid
1 parent 7ecc10b commit 2f8d447

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tags/variable.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ I am being captured.
5858
Using `capture`, you can create complex strings using other variables created with `assign`.
5959

6060
<p class="code-label">Input</p>
61-
```text
61+
```liquid
62+
{% raw %}
6263
{% assign favorite_food = 'pizza' %}
6364
{% assign age = 35 %}
6465
@@ -67,6 +68,7 @@ I am {{ age }} and my favorite food is {{ favorite_food }}.
6768
{% endcapture %}
6869
6970
{{ about_me }}
71+
{% endraw %}
7072
```
7173

7274
<p class="code-label">Output</p>

0 commit comments

Comments
 (0)