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

__proto__ converts to <var></var>proto__ #44

Closed
jmdyck opened this issue Sep 20, 2015 · 1 comment
Closed

__proto__ converts to <var></var>proto__ #44

jmdyck opened this issue Sep 20, 2015 · 1 comment

Comments

@jmdyck
Copy link

jmdyck commented Sep 20, 2015

ecmarkdown converts, e.g.

  <p>__proto__</p>

to

  <p><var></var>proto__</p>

ecmarkdown should know that a variable can't have an empty name, and thus that an underscore immediately followed by another underscore can't be the start of an UnderscoreFormat.

And similarly with other format-characters*, though none of them occurs doubled in the ES6 spec. Or at least, not in a context that triggers this behavior.

(*Actually, <p>||</p> causes ecmarkdown's parser to throw a TypeError.)

@bterlson
Copy link
Member

This is fixed.

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

No branches or pull requests

2 participants