-
Notifications
You must be signed in to change notification settings - Fork 325
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
Quotes are sometimes rendered incorrectly #928
Comments
@axelson that's down to the markdown renderer. It is probably a configuration in earmark. Maybe we can just disable it. |
@josevalim It looks like the configuration option in earmark is Ideally for ex_doc I think it would make sense to disable the smart quotes only (and I think that makes sense as an option for earmark) so I've raised an issue: pragdave/earmark#210 But possibly it makes sense to disable |
I agree. Let’s disable it and we can bring it back as an option if some
folks want it.
--
*José Valimwww.plataformatec.com.br
<http://www.plataformatec.com.br/>Founder and Director of R&D*
|
In the Phoenix 1.4.0 documentation we have the following snippet:
for example "room:*", "users:*", "system"
Which is rendered in html as
“room:<em>“, “users:</em>”, “system”
Note that the second smart quote is "incorrect", which is possibly because the
<em>
tag was inserted between them, although I would expect that the quote afterusers:
would have the same issue (abut maybe this is just a browser rendered oddity).After looking at the generated code I'm not sure that this is necessarily an ex_doc issue since the documentation should either be escaping the
\*
or enclosing them in backticks. I will file a PR on Phoenix to fix the generated docs.Also in my opinion, it would be better for ex_doc not to automatically convert double quote characters to smart quotes (but that's probably a different discussion)
Edit: Phoenix PR filed: phoenixframework/phoenix#3191
The text was updated successfully, but these errors were encountered: