Backticks are not escaped with the escape character (`\`) #363

Closed
zspencer opened this Issue Sep 13, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@zspencer

I believe the following code:

`\``

should render:

<p><code>`</code></p>

as specified in the markdown syntax reference

A "kinda workaround" is to use &#96; in place of the backtick (`) character; however this doesn't work inside of backticks: &#96;

Interestingly enough, the github basics of markdown documentation itself does have backticks inside of a code block.

Also interesting is almost no processor seems to get this right.

Is 9:30AM to early to start drinking?

@zspencer

This comment has been minimized.

Show comment
Hide comment
@zspencer

zspencer Sep 13, 2014

Never mind; it appears the proper syntax for inserting backticks inside of codeblocks is to use more backticks: `

Never mind; it appears the proper syntax for inserting backticks inside of codeblocks is to use more backticks: `

@zspencer zspencer closed this Sep 13, 2014

@amm-catapult

This comment has been minimized.

Show comment
Hide comment
@amm-catapult

amm-catapult Mar 23, 2016

Here are more examples:

  • CTRL+` gives: `CTRL+``
  • `` CTRL+` `` gives: CTRL+`

Just keep using more and more contiguous leading (and hence trailing) backticks with spaces inside them, per the pattern above, to go as crazy as you like :) For example:

`Oh you want FIVE backticks? ````` You'll need SIX to lead/trail, then :)`
...becomes...

Oh you want FIVE backticks? ````` You'll need SIX to lead/trail, then :)

Here are more examples:

  • CTRL+` gives: `CTRL+``
  • `` CTRL+` `` gives: CTRL+`

Just keep using more and more contiguous leading (and hence trailing) backticks with spaces inside them, per the pattern above, to go as crazy as you like :) For example:

`Oh you want FIVE backticks? ````` You'll need SIX to lead/trail, then :)`
...becomes...

Oh you want FIVE backticks? ````` You'll need SIX to lead/trail, then :)

@talyssonoc talyssonoc referenced this issue in talyssonoc/react-katex Jun 29, 2017

Merged

Add template literal example #23

@olivierverdier olivierverdier referenced this issue in karvus/ranger Mar 14, 2018

Closed

Fix backtick escaping #2

cheapsteak added a commit to cheapsteak/babel-plugin-import that referenced this issue Apr 24, 2018

Add more backticks to fix example code render bug
The backticks were triggering the end of the code block. Needed to add more backticks :)
Reference: github/markup#363

@cheapsteak cheapsteak referenced this issue in ant-design/babel-plugin-import Apr 24, 2018

Merged

Add more backticks to fix example code render bug #226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment