mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-29 07:05:13 -07:00
Updated Whitespace Control (markdown)
+3
-5
@@ -7,9 +7,8 @@ and whitespace if there's an indentation.
|
|||||||
For example:
|
For example:
|
||||||
|
|
||||||
```liquid
|
```liquid
|
||||||
{% assign author = "harttle" %}
|
{% author = "harttle" %}
|
||||||
{{ author }}
|
{{ author }}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
@@ -17,15 +16,14 @@ Outputs:
|
|||||||
```
|
```
|
||||||
|
|
||||||
harttle
|
harttle
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
You can include hyphens in your tag syntax (`{{-`, `-}}`, `{%-`, `-%}`) to
|
You can include hyphens in your tag syntax (`{{-`, `-}}`, `{%-`, `-%}`) to
|
||||||
strip whitespace from left or right. For example:
|
strip whitespace from left or right. For example:
|
||||||
|
|
||||||
```liquid
|
```liquid
|
||||||
{%- assign author = "harttle" -%}
|
{% assign author = "harttle" -%}
|
||||||
{{- author -}}
|
{{ author }}
|
||||||
```
|
```
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user