fix(api): Use latest bs4 syntax for declaring parser

This commit is contained in:
TheOnlyWayUp
2025-06-10 19:56:56 +00:00
parent 6e93f743f3
commit c132b5de18
+1 -2
View File
@@ -16,8 +16,7 @@ def clean_tree(title: str, id: int, body: str) -> BeautifulSoup:
<h1 class="chapter-title" 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 features="html.parser", # head/body tags aren't generated
features="lxml",
) )
insert_at = cast(Tag, new_soup.find("section")) insert_at = cast(Tag, new_soup.find("section"))