Markdown Tips — Using backticks in inline code

Опубликовано: 09 Январь 2024
на канале: Code 2020
554
21

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


Смотрите видео Markdown Tips — Using backticks in inline code онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Code 2020 09 Январь 2024. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 554 раз и оно понравилось 21 посетителям.