How does one escape the "backslash square brackets" \[ \] sequence in Markdown for GitHub? The sequence produces a <pre><code>...</code></pre>
section.
This is only a problem with Markdown for GitHub. I can write it here without the problem:
\[something \]
This code in GitHub will however produce
\ something
Automatic Escaping for Special Characters Left angle brackets are used to start tags; ampersands are used to denote HTML entities. If you want to use them as literal characters, you must escape them as entities, e.g. < , and & . in your anchor tag href attribute.
Is there some other way to display curly brackets in markdown? Similarly if you ever just need a left or right curly brace use {{ or }} . Stu - you are a star! That did the trick, and thanks for your speedy reply.
This has been fixed on github.com. I'm not sure when, but you can now escape square brackets with a single backlash. EG
\[Hello\]
is rendered as
[Hello]
I have resorted to surrounding my bracketed string with backticks: `[[320,50],[300,250]]`
Which turns it into: [[320,50],[300,250]]
So now my array doesn't turn into a link.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With