Added comment explaining reason for fix

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
Maksym Lysak 2024-10-24 13:28:03 +02:00
parent 1783f137da
commit 5d090c59c4

View File

@ -27,6 +27,8 @@ _log = logging.getLogger(__name__)
class MarkdownDocumentBackend(DeclarativeDocumentBackend):
def clean_md(self, md_text):
# Long sequences of unescaped underscore symbols "_" hangs parser
# Up to 3 characters "___" are allowed to represent italic, bold, and bold-italic
res_text = md_text.replace("____", "")
return res_text