You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Doc]: Thumbnail title in gallery show rst formatting characters #23884
It would be best if this were fixed in sphinx-gallery; never know if we might accidentally introduce formatting in a title somewhere later, even if we fix them all now.
My intention when opening this issue was not so much to change the examples and tutorials but restore the behavior of sg < 0.11.0 where any formatting was stripped from the title, see the old docs:
The question was more if this could be achieved by some CSS voodoo on the part of matplotlib instead of waiting for a fix in sg.
The original example above has no thumbnail anymore (due to #25395). With Sphinx Gallery 0.12.2 and sphinx-gallery/sphinx-gallery#1108 there's only a single case left which will be fixed by #25508 .
Activity
timhoffm commentedon Sep 13, 2022
Agreed that we should not use markup in headings.
Maybe we can make the wording more explicit though. How about
QuLogic commentedon Sep 13, 2022
It would be best if this were fixed in sphinx-gallery; never know if we might accidentally introduce formatting in a title somewhere later, even if we fix them all now.
timhoffm commentedon Sep 13, 2022
The question generally is how? While emphasis may be viable, do you really want to have links, literal code etc in a title?
QuLogic commentedon Sep 14, 2022
We already disallow links in headings, but it's only enforced when we notice it. For the sphinx-gallery cards, it'd be better to strip all formatting.
StefRe commentedon Sep 14, 2022
My intention when opening this issue was not so much to change the examples and tutorials but restore the behavior of sg < 0.11.0 where any formatting was stripped from the title, see the old docs:
The question was more if this could be achieved by some CSS voodoo on the part of matplotlib instead of waiting for a fix in sg.
timhoffm commentedon Sep 14, 2022
This would need to be addressed in Sphinx-gallery.
StefRe commentedon Sep 14, 2022
I've opened an issue there: sphinx-gallery/sphinx-gallery#1002
StefRe commentedon Mar 19, 2023
The original example above has no thumbnail anymore (due to #25395). With Sphinx Gallery 0.12.2 and sphinx-gallery/sphinx-gallery#1108 there's only a single case left which will be fixed by #25508 .