Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quoting & in markdown #4096

Open
davidcarlisle opened this issue Mar 23, 2022 · 0 comments
Open

quoting & in markdown #4096

davidcarlisle opened this issue Mar 23, 2022 · 0 comments
Labels

Comments

@davidcarlisle
Copy link

davidcarlisle commented Mar 23, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant