Closed jmd-dk closed 3 years ago
Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:
I'm not sure if this is just intentionally not supported. Images in tab headings is non-trivial and won't look good for most cases. This may be where you might want to look into Sphinx-Panels navigation
Think this might be the same issue as #100. It sounds like v2.0.0 doesn't doesn't use nested parsing on the tab labels, so these directives are getting ignored. Shouldn't be too hard to add this back in.
The example with images linked above actually looks quite neat!
Describe the bug
Placing images and math in tab headings/titles does not work in version 2.0.0.
To Reproduce / Expected behavior
I'm not sure if it is (was) a deliberate feature, but prior to 2.0.0 one could have tabs like what is shown here. The Sphinx code generating this is of the form
where
|linux|
and|windows|
are images defined asI use
:math:
simply to produce some whitespace between the images and the titles.With sphinx-tabs 2.0.0 we get the following: Neither the image nor the math is rendered. It's as though the RST-text isn't getting parsed but just used raw, as is.
Environment