-
Notifications
You must be signed in to change notification settings - Fork 29
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
Compiler fails to un-escape parser options #63
Comments
Why do you set the options using the |
That's how you're supposed to escape quotes in HTML attributes, per spec, and should thus be supported by anything that attempts to parse HTML attributes. The |
ok I got it, but this seems to me more a jade issue pugjs/pug#198 |
It's not. It's valid (X)HTML, according to spec, and thus Riot should either support it, or use a standard HTML parser that already supports this. |
I will release a patch asap, it seems to me quite easy to fix |
Thanks :) |
While trying to specify Babel options to Riot without using a
.babelrc
(I'll be opening a separate ticket about this), I discovered that you can specifyoptions
on a<script>
tag, to have the options in question passed along to the parser. This doesn't seem to be documented, but it also doesn't work - for example, the following Jade-generated code:... will result in the following error:
... failing here due to not un-escaping the
"
s in the attribute value (which is unsurprising, given that it uses regular expressions to parse it out, rather than a real HTML parser). This should probably be fixed :)The text was updated successfully, but these errors were encountered: