Update RenderShortcodes.md

This commit is contained in:
Bjørn Erik Pedersen 2024-11-04 10:13:06 +01:00 committed by GitHub
parent b5f289165e
commit b53aedcea8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,3 +79,14 @@ An *emphasized* word.
``` ```
Note that the shortcode within the content file was rendered, but the surrounding Markdown was preserved. Note that the shortcode within the content file was rendered, but the surrounding Markdown was preserved.
## Limitations
The primary use case for `.RenderShortcodes` is inclusion of Markdown content. If you try to use `.RenderShortcodes` inside `HTML` blocks when inside Markdown, you will get a warning similar to this:
```
WARN .RenderShortcodes detected inside HTML block in "/content/mypost.md"; this may not be what you intended ...
```
The above warning can be turned off is this is what you really want.