Updated Whitespace Control (markdown)

Jun Yang
2017-10-30 00:51:32 +08:00
parent 6057fc9e6a
commit d399ee87c1
+3 -5
@@ -7,9 +7,8 @@ and whitespace if there's an indentation.
For example:
```liquid
{% assign author = "harttle" %}
{% author = "harttle" %}
{{ author }}
```
Outputs:
@@ -17,15 +16,14 @@ Outputs:
```
harttle
```
You can include hyphens in your tag syntax (`{{-`, `-}}`, `{%-`, `-%}`) to
strip whitespace from left or right. For example:
```liquid
{%- assign author = "harttle" -%}
{{- author -}}
{% assign author = "harttle" -%}
{{ author }}
```
Outputs: