Skip to content
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

Use semantic names for table of contents fragments #40

Open
chromakode opened this issue Sep 12, 2012 · 1 comment
Open

Use semantic names for table of contents fragments #40

chromakode opened this issue Sep 12, 2012 · 1 comment

Comments

@chromakode
Copy link

Instead of #toc_0, how about something like #wiki-toc-first-few-words?

@stuartpb
Copy link

It looks like this is being done now on the live site (example: https://www.reddit.com/wiki/reddiquette#wiki_in_regard_to_voting), but I can't figure out how based on the code circa html.c line 226, which appears to still use "toc_" + number.

I came looking for the spot where it makes these conversions, as it's kind of broken: it outputs IDs with percent-encoded characters (using a dot instead of a percent) like "wiki_please__don.27t", which, on top of being ugly, poses a problem for CSS selectors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants