diff --git a/otc_doc_convertor/convertor.py b/otc_doc_convertor/convertor.py index 52d2bd572..7773d3b10 100644 --- a/otc_doc_convertor/convertor.py +++ b/otc_doc_convertor/convertor.py @@ -306,6 +306,10 @@ class OTCDocConvertor: new = f"{em.string}" em.replace_with(bs4.BeautifulSoup(new, "html.parser")) + for p in soup.body.find_all(string=re.compile(r"(/\*)")): + if p.string and p.parent.name == "p": + p.string.replace_with(p.string.replace("/*", "/``*``")) + escape_asterisk_re = r"\((\*)[\.,]" for p in soup.body.find_all(string=re.compile(escape_asterisk_re)): if p.string: