From d399ee87c11b19a361738c2cd678da6e67ca1a48 Mon Sep 17 00:00:00 2001 From: Jun Yang Date: Mon, 30 Oct 2017 00:51:32 +0800 Subject: [PATCH] Updated Whitespace Control (markdown) --- Whitespace-Control.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Whitespace-Control.md b/Whitespace-Control.md index 2d86f64..4e85401 100644 --- a/Whitespace-Control.md +++ b/Whitespace-Control.md @@ -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: