fix(api): Use correct class in ToC for chapter title
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user