Excaping Shortcodes for Display Inside Markdown Code Block
-
With out markdown, it’s very easy to escape a shortcode for display like so:
<code>[[shortcode attribute="value"]content[/shortcode]]</code>However, this does not work when inside a markup code block using backticks:
<ul> <li>item one</li> <li> item two [[shortcode attribute="value"]content[/shortcode]]</li> <li> item three</li> </ul>In the above example, the shortcode would have been processed although it is placed inside the markup code block. How can we display code blocks inside of markup with escaped shortcodes that are for display only?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Excaping Shortcodes for Display Inside Markdown Code Block’ is closed to new replies.