We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d03ff16 commit edb19bcCopy full SHA for edb19bc
src/sphinx_tippy.py
@@ -416,7 +416,12 @@ def create_id_to_tip_html(
416
):
417
id_to_html[str(tag["id"])] = _get_header_html(header)
418
419
- elif tag.name == "div" and "math-wrapper" in (tag.get("class") or []):
+ elif tag.name == "div" and (
420
+ all(
421
+ class_to_check in (tag.get("class") or [])
422
+ for class_to_check in ("math", "notranslate", "nohighlight")
423
+ )
424
+ ):
425
# remove an span with eqno class, since it is not needed
426
# and it can cause issues with the tooltip
427
# (e.g. if the span is the last element in the div)
0 commit comments