respec
respec copied to clipboard
quoting & in markdown
Description of problem
When using markdown &
is not protected in code sections (single or triple backticks)
The gfm spec documents that wihin code
, &
will not start an entity reference
https://github.github.com/gfm/#example-331
However this does not happen in respec markdown, at the top level you need &
and in included markdown you need to double escape as &
URL to affected spec or repo:
test document (copy of markdown example from respec doc, plus →
examples)
https://davidcarlisle.github.io/testdoc/respec-markdown
This actually came up in a potential W3C Math WG note while I was experimenting with using markdown source, see
https://w3c.github.io/mathml-docs/notes-on-mathml/#a-first-example
where I have to double quote as ±
to get ±
to show.
What happened (e.g., it crashed)?:
bactick & rightarrow; backtick produces →
Expected behavior (e.g., it shouldn't crash):
expect bactick & rightarrow; backtick to produce →
Optional, steps to reproduce:
See above test document.