From 403ee8dd541751386d8767af4da9fe68cff1edfb Mon Sep 17 00:00:00 2001 From: AaronBenDaniel <144371000+AaronBenDaniel@users.noreply.github.com> Date: Tue, 10 Jun 2025 10:11:37 -0400 Subject: [PATCH] fix(api): Add support for strong and em tags --- src/api/src/create_book/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/src/create_book/parser.py b/src/api/src/create_book/parser.py index d71e2fa..36cf3e1 100644 --- a/src/api/src/create_book/parser.py +++ b/src/api/src/create_book/parser.py @@ -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
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