In my Markdown, code blocks are defined by three backticks (```).
How would I add three backticks into that code snippet? And have them escaped.
# Markdown Title Code snippet inside of Markdown: ```html ``` <p>My code snippet</p> ``` ```
Is there a way to do this? My code blocks don't work when adding the three backticks inside the code block.
Use more than three backticks.
You can use three or more backticks to define a code snippet in Markdown.
So use four backticks to define your code snippet. And then use three inside the code snippet.
# Markdown Title Code snippet inside of Markdown: ````html ``` <p>My code snippet</p> ``` ````
This will preserve the three backticks inside your code snippet.
You can use tildes to define a code snippet in Markdown:
~~~ <p>Code snippet</p> ~~~
If you use tildes, the three backticks inside should be preserved.