From f920b873b8d5f77c426586fb1feeff6fea551df8 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Sat, 13 Oct 2018 11:15:19 +0200 Subject: [PATCH] Clarify where to use shortcodes --- docs/content/documentation/content/shortcodes.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/content/documentation/content/shortcodes.md b/docs/content/documentation/content/shortcodes.md index a2d1c70..f33995e 100644 --- a/docs/content/documentation/content/shortcodes.md +++ b/docs/content/documentation/content/shortcodes.md @@ -8,7 +8,8 @@ HTML to add some styling for example. To solve this, Gutenberg borrows the concept of [shortcodes](https://codex.wordpress.org/Shortcode_API) from WordPress. -In our case, the shortcode corresponds to a template that is defined in the `templates/shortcodes` directory or a built-in one. +In our case, the shortcode corresponds to a template that is defined in the `templates/shortcodes` directory or a built-in one that can +be used in a Markdown file. If you want to use something similar to shortcodes in your templates, try [Tera macros](https://tera.netlify.com/docs/templates/#macros). ## Writing a shortcode Let's write a shortcode to embed YouTube videos as an example.