-
Notifications
You must be signed in to change notification settings - Fork 1
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
The TOC have an unordered list item page #91
Comments
The current code to detect the page numbers is really simple (and also inefficient), it creates the PDF, then searches for the names of the headers and saves the page numbers it finds: Markdown2Pdf/Markdown2Pdf/Services/TableOfContentsCreator.cs Lines 103 to 145 in 0ee3761
This obviously causes issues when the header names exist somewhere else in the PDF. I am open for ideas or PRs on a better way of handling this. |
If I have an unordered list in the md file and it is followed by headers with the same names, then TOC takes the pages of the list, not the header. For example:
Test.md
Test.pdf
The text was updated successfully, but these errors were encountered: