Markdown Tips — Using backticks in inline code

Published: 09 January 2024
on channel: Code 2020
1,686
26

Need to write some inline code that includes a backtick? As you have probably discovered, this will end up breaking rendering and even backslash escapes can't help.

However the fix is actually easy: just use extra backticks to start and end the inline code! If your code contains just single backticks, wrap it in two backticks. If your code contains three backticks in a row, then you need to use four or more backticks to start and end the code.

It's only slightly more complicated when the inline code sample starts or ends with a backtick. To make sure these backticks are not treated as part of the start/end of the inline code itself, just add a space character at the start and end of the code. These will be stripped out during rendering

#markdown


On this page of the site you can watch the video online Markdown Tips — Using backticks in inline code with a duration of hours minute second in good quality, which was uploaded by the user Code 2020 09 January 2024, share the link with friends and acquaintances, this video has already been watched 1,686 times on youtube and it was liked by 26 viewers. Enjoy your viewing!