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

Change logic for header fragments on the wiki #4908

Open
cl8n opened this issue Sep 7, 2019 · 0 comments
Open

Change logic for header fragments on the wiki #4908

cl8n opened this issue Sep 7, 2019 · 0 comments

Comments

@cl8n
Copy link
Member

cl8n commented Sep 7, 2019

currently when you have a page like this, where some headers have the same name:

# Something
## Section
# Something Else
## Section

the generated url fragments for the level 2 headers are #section.1 and #section.2, respectively. it would be more helpful for wiki editors if they were #something.section and #something-else.section instead, because then we wouldn't have to worry about updating them whenever a new header with the same name is added to the page. in the (rare and probably nonexistent) case that the entire path of parent headers is the same, it could fallback to the old behavior

so basically just this format for all headers

# Header        => #header
## Section      => #header.section
### Sub-section => #header.section.sub-section

suggesting this as a solution for my comment here ppy/osu-wiki#2482 (comment)

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

No branches or pull requests

2 participants