mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-30 14:04:27 +00:00
Added comment explaining reason for fix
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
parent
1783f137da
commit
5d090c59c4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user