-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Html special characters inside text links #7346
Comments
I am unable to reproduce the problem with |
This comment has been minimized.
This comment has been minimized.
I am still unable to reproduce the problem. Are you using a render hook to rewrite the link? If so, please point me to the code for your render hook. |
Ah, yes, sorry, my bad, I forgot about it, now is fine 😄 |
Please close this issue. In the future, please post problems such as these to the Hugo Forum. |
Hi, I simply installed Hugo 0.71 and created a markdown file with the code I've described on the first post. The Hugo settings are the default except for the "unsafe" setting. I will try again with 0.72 on the next days. 😀 |
I changed config.toml as shown below, and still cannot reproduce the problem.
|
You're right: I've wrote a custom render template for adding |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Current behaviour:
Hi, currently if you put special characters or html entities, the result is not predictable. Here you can find some examples: in some cases both the char and the html code are escaped, in other cases (like
...
and'
or'
are rendered.[&](url)
<a href="url">&amp;</a>
[&](url)
<a href="url">&amp;</a>
[...](url)
<a href="url">&hellip;</a>
[…](url)
<a href="url">…</a>
[ ](url)
<a href="url"> </a>
[<](url)
<a href="url">&lt;</a>
[<](url)
<a href="url">&lt;</a>
["](url)
<a href="url">&quot;</a>
["](url)
<a href="url">&quot;</a>
['](url)
<a href="url">'</a>
['](url)
<a href="url">'</a>
Expected behaviour
Special characters should be correctly rendered. At least one of the two versions (the html entity or the character itself).
Thanks :-)
The text was updated successfully, but these errors were encountered: