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

TOC Links and Custom Header ID Fix #4527

Merged
merged 2 commits into from Oct 2, 2021
Merged

Conversation

broxen
Copy link
Contributor

@broxen broxen commented Oct 1, 2021

This simple PR fixes the issue where TOC Links fail to work for headers that have been given a custom ID, or when defined in the HTML body as discussed in #3502

Such as in the scenario below, where Wiki.js will fail to properly generate the page TOC for Header 1

[Link](#custom)
# Header 1 {#custom}

Fix the issue described in discussion requarks#3502 regarding header links and TOC failing to properly generate when header ID is custom defined.
@NGPixel NGPixel merged commit db73b65 into requarks:dev Oct 2, 2021
@broxen broxen deleted the toc-header-fix branch October 2, 2021 04:29
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.

None yet

2 participants