Fix wrong space characters & hard returns

This commit is contained in:
EricFromCanada
2021-02-22 17:20:21 -05:00
parent fb8432ca16
commit c99ddcbfc8
3 changed files with 12 additions and 15 deletions

View File

@@ -3,9 +3,7 @@ title: Comment
description: An overview of comments tags in the Liquid template language.
---
Allows you to leave un-rendered code inside a Liquid template. Any text within
the opening and closing `comment` blocks will not be printed, and any Liquid code
within will not be executed.
Allows you to leave un-rendered code inside a Liquid template. Any text within the opening and closing `comment` blocks will not be printed, and any Liquid code within will not be executed.
<p class="code-label">Input</p>
```liquid

View File

@@ -99,7 +99,7 @@ Limits the loop to the specified number of iterations.
<!-- if array = [1,2,3,4,5,6] -->
{% for item in array limit:2 %}
{{ item }}
{% endfor %}
{% endfor %}
{% endraw %}
```
@@ -118,7 +118,7 @@ Begins the loop at the specified index.
<!-- if array = [1,2,3,4,5,6] -->
{% for item in array offset:2 %}
{{ item }}
{% endfor %}
{% endfor %}
{% endraw %}
```
@@ -155,15 +155,15 @@ Defines a range of numbers to loop through. The range can be defined by both lit
<p class="code-label">Input</p>
```liquid
{% raw %}
{% for i in (3..5) %}
{% for i in (3..5) %}
{{ i }}
{% endfor %}
{% endfor %}
{% assign num = 4 %}
{% assign range = (1..num) %}
{% for i in range %}
{{ i }}
{% endfor %}
{% endfor %}
{% endraw %}
```
@@ -183,7 +183,7 @@ Reverses the order of the loop. Note that this flag's spelling is different from
<!-- if array = [1,2,3,4,5,6] -->
{% for item in array reversed %}
{{ item }}
{% endfor %}
{% endfor %}
{% endraw %}
```
@@ -363,17 +363,17 @@ Defines a range of numbers to loop through. The range can be defined by both lit
{% assign num = 4 %}
<table>
{% tablerow i in (1..num) %}
{% tablerow i in (1..num) %}
{{ i }}
{% endtablerow %}
{% endtablerow %}
</table>
<!--literal number example-->
<table>
{% tablerow i in (3..5) %}
{% tablerow i in (3..5) %}
{{ i }}
{% endtablerow %}
{% endtablerow %}
</table>
{% endraw %}
```

View File

@@ -3,8 +3,7 @@ title: Raw
description: An overview of raw tags in the Liquid template language.
---
Raw temporarily disables tag processing. This is useful for generating content
(eg, Mustache, Handlebars) which uses conflicting syntax.
Temporarily disables tag processing. This is useful for generating certain content (eg, Mustache, Handlebars) that uses conflicting syntax.
<p class="code-label">Input</p>
```liquid