-
Notifications
You must be signed in to change notification settings - Fork 201
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
Allow inline elements in sidenotes #612
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
cc @AakashGfude could you look into this one? I think we might have a bug in the sidenotes code |
Thanks @oyamauchi for reporting this. Will have a look. |
Hi @oyamauchi @choldgraf, actually it's not a bug. But a limitation on the sidenote elements. The sidenotes are an inline EDIT: bold and italic are inline elements, so we can handle it inside span. Will try to fix it. |
Context
When
use_sidenotes
is true and footnotes are converted to sidenotes, inline elements within the footnote content are stripped. Whenuse_sidenotes
is false, the inline elements show up as-is within the footnote. This means you can't even have bold or italics in sidenotes, which seems like a needless restriction.Illustration:
Proposal
I'm not familiar with the details of Sphinx or Docutils, so I'm not sure how big of a task this is. As far as I can tell it's because of the call to
astext()
here:https://github.com/executablebooks/sphinx-book-theme/blob/master/src/sphinx_book_theme/_transforms.py#L34
Tasks and updates
No response
The text was updated successfully, but these errors were encountered: