fix(api): Inject id and title into chapter html template

This commit is contained in:
AaronBenDaniel
2025-06-09 12:43:01 -04:00
parent 939b4c8caa
commit af90adb422
+1 -1
View File
@@ -12,7 +12,7 @@ from .vars import headers
def clean_tree(title: str, id: int, body: str) -> BeautifulSoup:
original_soup = BeautifulSoup(body)
new_soup = BeautifulSoup(
"""
f"""
<h1 class="chapter-name" id={id}>{title}</h1>
<section class="chapter-body"></section>
"""