fix(api): Add support for strong and em tags

This commit is contained in:
AaronBenDaniel
2025-06-10 10:11:37 -04:00
parent db899aafde
commit 403ee8dd54
+1 -1
View File
@@ -31,7 +31,7 @@ def clean_tree(title: str, id: int, body: str) -> BeautifulSoup:
for child in cast(list[Tag], tag.children):
# tag is a <p> enclosing either text, media, or a break
if child.name in [None, "b", "i", "u"]:
if child.name in [None, "b", "i", "u","strong","em"]:
# text is enclosed, can be italic, bold, underlined, or a mix
tag.attrs = {}
p_tag = tag