fix(html): fix HTML parsed heading level (#1244)

Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
This commit is contained in:
Panos Vagenas
2025-03-26 10:30:23 +01:00
committed by GitHub
parent 9eb1686f93
commit 85c4df887b
13 changed files with 68 additions and 68 deletions

View File

@@ -243,7 +243,7 @@ class HTMLDocumentBackend(DeclarativeDocumentBackend):
self.parents[hlevel] = doc.add_heading(
parent=self.parents[hlevel - 1],
text=text,
level=hlevel,
level=hlevel - 1,
content_layer=self.content_layer,
)