Skip to content

Conversation

@padde
Copy link
Contributor

@padde padde commented Oct 26, 2015

The function names need to be URL escaped in the auto-generated links as well. Other spots I found like the links in the sidebar were already corrected.

For example this section in the elixir docs links to <<>>/1, which generates the following markup:

<a href="#&lt;&lt;&gt;&gt;/1">...</a>

However, it should be like this

<a href="#%3C%3C%3E%3E/1">...</a>

Note that I also changed the specs, which now assert that surrounding spaces are removed. This is now in line with the way Autolink.project_functions works, which also strips spaces.

@padde padde force-pushed the fix-autolink-anchors branch 3 times, most recently from 77c3321 to aae5201 Compare October 26, 2015 21:06
@padde padde force-pushed the fix-autolink-anchors branch from aae5201 to 62c6601 Compare October 26, 2015 21:11
josevalim added a commit that referenced this pull request Oct 27, 2015
Fix autolink anchors for non URL safe function names
@josevalim josevalim merged commit 85f445b into elixir-lang:master Oct 27, 2015
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

@padde padde deleted the fix-autolink-anchors branch October 27, 2015 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants