When writing instruction about shortcodes, wrapping shortcodes in a codespan, code-block or code-fence doesn’t stop them from running.
If you want a show the shortcode on the page - but not run it or prevent it from escaping then you need to try what works …
shortcodes look like {{< myshortcode >}}
to escape or stop them running … try
{{</* myshortcode */>}} and that should result in {{< myshortcode >}} showing on the page
For me that didnt work …
and I find in markdown I have to write
{{</* myshortcode */>}}
I also use the nohighlight shortcode for code-fences
{{< nohighlight >}}{{< myshortcode >}}
{{< /nohighlight >}}
Linkage
Tags:Read more from my blog for an introduction and quick tips on developing in Hugo or UCTD.