From 83e8f2168483a2459eefe5404e078ef5326ed961 Mon Sep 17 00:00:00 2001 From: "Daniel F. Dickinson" Date: Wed, 19 Oct 2022 03:08:41 -0400 Subject: [PATCH] Clarify that a shortcode with .Inner must be closed (#1785) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Clarify that a shortcode with .Inner must be closed Closes #1784 which provides the details. Signed-off-by: Daniel F. Dickinson * Apply suggestions from code review Co-authored-by: Joe Mooring Signed-off-by: Daniel F. Dickinson Co-authored-by: Bjørn Erik Pedersen Co-authored-by: Joe Mooring --- content/en/templates/shortcode-templates.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/en/templates/shortcode-templates.md b/content/en/templates/shortcode-templates.md index 839032800..d1a7ceb84 100644 --- a/content/en/templates/shortcode-templates.md +++ b/content/en/templates/shortcode-templates.md @@ -110,6 +110,11 @@ by using the self-closing syntax: {{}} ``` +{{% warning %}} +Any shortcode that refers to `.Inner` must be closed or self-closed. + +{{% /warning %}} + #### `.Params` The `.Params` variable in shortcodes contains the list parameters passed to shortcode for more complicated use cases. You can also access higher-scoped parameters with the following logic: