Clarify that a shortcode with .Inner must be closed (#1785)

* Clarify that a shortcode with .Inner must be closed

Closes #1784 which provides the details.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>

* Apply suggestions from code review

Co-authored-by: Joe Mooring <joe@mooring.com>

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
Co-authored-by: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Co-authored-by: Joe Mooring <joe@mooring.com>
This commit is contained in:
Daniel F. Dickinson
2022-10-19 03:08:41 -04:00
committed by GitHub
parent 4193f4445b
commit 83e8f21684
@@ -110,6 +110,11 @@ by using the self-closing syntax:
{{</* innershortcode /*/>}}
```
{{% 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: