-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Footnote appears in all following objects after the first appearance #186
Comments
Hi @anthonyhtyao, thank you for the bug report 🙂 I'll mark this as confirmed, your screenshot is enough evidence. As for the bug in itself, I guess it's because we re-use the same |
This issue is actually more complex than this, because, even if you reset the list of footnotes, their reference IDs will still be shared. If you happen to put two different functions that both have a footnote named [^1] (not related though), the page will be generated with both of them having the id # |
Hey @anthonyhtyao, so this has been partially fixed by @oprypin (thanks ❤️), partially because you'll still need to use different IDs for footnotes in docstrings that will be rendered in the same Markdown page. I'll link to the docs section once it's deployed. |
I sent out a complete fix - "once and for all", as I say. #199 |
0.14.0b1 is out! Try it out and tell us if it works better 🙂 |
It works. |
Hi, I'm not sure this is related to pytkdocs or mkdocstrings.
Describe the bug
If a footnote is added to one of python objects, the footnote will appear in every object after that one in the same documentation page.
To Reproduce
Here is an example to reproduce
Expected behavior
The footnote is supposed to appear only under function B
Screenshots
However, footnote appears under function B and C
The text was updated successfully, but these errors were encountered: