-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Multi-times TOC are generated repeatly when markdown file has html included #49
Comments
Hi @guo1017138 , thanks for reporting this! I've tried building a minimal example to reproduce this, but have not succeeded yet. Some questions:
|
@timvink , Thank you. There are some sensitive data in the doc so I will create a demo mkdocs reproduce. Will upload the docs tar to this ticket once get reproduced. |
Hi @timvink , see the following link for the sample mkdocs project archive. I include a test.html in index.md three times which caused the TOC was generated four times in print page. |
Sorry for the very late reply on this one. Finally got around to spent some time on debugging this. Your sample really helped there. Turns out the I had (wrongly) assumed
There was also a second issue when enabling the Will release the fix later today! |
Fixed in v1.2.4 ! |
Hi owners,
Thanks for the excellent plugin. I just found my table of contents are generated many times in my print page.
After debug, I found it caused by my including html several times as mkdocs supported:
--8<-- "./table_7.html"
And this plugin replace simply. This results generate_toc() called several times.
A possible fix will be only replace the last due to the previously ones may be included by html file.
The text was updated successfully, but these errors were encountered: