From ffca79d7b336074fd3e9d20d1cf892b73f800a32 Mon Sep 17 00:00:00 2001 From: ArthurLuciani <31729453+NamelessIV@users.noreply.github.com> Date: Fri, 13 Sep 2024 16:28:04 +0200 Subject: [PATCH] Changed `_get_header_html` so that each header level in a tip excerpt has the `tippy-header` class applied to it --- src/sphinx_tippy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sphinx_tippy.py b/src/sphinx_tippy.py index 3531c1a..f63bf48 100644 --- a/src/sphinx_tippy.py +++ b/src/sphinx_tippy.py @@ -467,7 +467,7 @@ def _get_header_html(header: Tag | NavigableString, _start: bool = True) -> str: continue if sibling.name == "section": if sub_header := sibling.find(["h1", "h2", "h3", "h4", "h5", "h6"]): - output += _get_header_html(sub_header, False) + output += _get_header_html(sub_header, True) break if sibling.name == "p": output += str(sibling)