-
Notifications
You must be signed in to change notification settings - Fork 326
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
setting display: block
on inline targets breaks things badly
#315
Comments
Thanks for the report! We actually have some footnote examples in the demo docs at https://pydata-sphinx-theme.readthedocs.io/en/latest/demo/demo.html#footnotes, so we should need to figure out what the difference is with the ones generated by sphinxcontrib-bibtex, as it seems to be working in our demo. |
Here it is: https://24938-1301584-gh.circle-artifacts.com/0/dev/overview/implementation.html#id1 Sorry, I should have thought to include that to begin with. |
actually it's broken on your demo site too: https://pydata-sphinx-theme.readthedocs.io/en/latest/demo/demo.html#id25 |
Hmm, how did you get to that link? |
OK, I see, it's the "back" reference from the footnote to where it is referenced. That indeed triggers the issue in our demo docs as well. Thanks for pointing that out! |
We're using sphinxcontrib-bibtex to handle citations; notice how the left bracket on the reference link is no longer inline, it shows up separated from its number and crashing into the title, and the remainder of the text starts a new paragraph:
I think this problem was introduced with #283 (or possibly #280).
this is how it should look (ignore the different spacing between top navbar and section title, that's just a page scrolling difference):
A proposed fix using javascript instead of CSS (note that the various disjuncts in the conditional may need to be made more general for it to work for all sphinx sites, not just ours):
The text was updated successfully, but these errors were encountered: