Skip to content

minor heading-link tweaks#3143

Merged
Carreau merged 2 commits intoipython:masterfrom
minrk:heading-fixup
Apr 8, 2013
Merged

minor heading-link tweaks#3143
Carreau merged 2 commits intoipython:masterfrom
minrk:heading-fixup

Conversation

@minrk
Copy link
Copy Markdown
Member

@minrk minrk commented Apr 7, 2013

  • use id instead of name
  • replace spaces with _

for html compliance

and tweak heading-anchor css to avoid blue visited links.

- use id instead of name
- replace spaces with `_`

for html compliance
avoids blue links after visiting
@Carreau
Copy link
Copy Markdown
Member

Carreau commented Apr 8, 2013

+1. Do you want to add an encodeURI to be safe ? I agree That _ is more readable than %20.

@minrk
Copy link
Copy Markdown
Member Author

minrk commented Apr 8, 2013

I looked into it, and anchors do not have the same restrictions as URIs - no spaces is the only requirement. That's why I went with underscore instead of encodeURI.

@Carreau
Copy link
Copy Markdown
Member

Carreau commented Apr 8, 2013

I looked into it, and anchors do not have the same restrictions as URIs

Merging then. Thanks !

Carreau added a commit that referenced this pull request Apr 8, 2013
@Carreau Carreau merged commit c433019 into ipython:master Apr 8, 2013
@minrk minrk deleted the heading-fixup branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
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

Successfully merging this pull request may close these issues.

2 participants