fix(api): Use correct class in ToC for chapter title

This commit is contained in:
AaronBenDaniel
2025-06-10 10:50:51 -04:00
parent 403ee8dd54
commit 1baeb3f975
+1 -1
View File
@@ -13,7 +13,7 @@ def clean_tree(title: str, id: int, body: str) -> BeautifulSoup:
original_soup = BeautifulSoup(body) original_soup = BeautifulSoup(body)
new_soup = BeautifulSoup( new_soup = BeautifulSoup(
f""" f"""
<h1 class="chapter-name" id={id}>{title}</h1> <h1 class="chapter-title" id={id}>{title}</h1>
<section class="chapter-body"></section> <section class="chapter-body"></section>
""", """,
parser="html.parser", # head/body tags aren't generated parser="html.parser", # head/body tags aren't generated