fix(api): Inject id and title into chapter html template
This commit is contained in:
@@ -12,7 +12,7 @@ from .vars import headers
|
|||||||
def clean_tree(title: str, id: int, body: str) -> BeautifulSoup:
|
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"""
|
||||||
<h1 class="chapter-name" id={id}>{title}</h1>
|
<h1 class="chapter-name" id={id}>{title}</h1>
|
||||||
<section class="chapter-body"></section>
|
<section class="chapter-body"></section>
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user