Skip to content

Commit a0b0c60

Browse files
author
Adam Hollett
authored
Merge pull request TheAlgorithms#872 from j-f1/patch-1
Wrap capture example in {% raw %} and highlight it as Liquid
2 parents 1db4219 + 2f8d447 commit a0b0c60

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)