MCPcopy
hub / github.com/docling-project/docling / replace

Method replace

docling/backend/md_backend.py:102–109  ·  view source on GitHub ↗
(match)

Source from the content-addressed store, hash-verified

100 @staticmethod
101 def _unescape_except_pipe(text: str) -> str:
102 def replace(match):
103 entity = match.group(0)
104
105 # entities that represent |
106 if entity in ("|", "|", "|"):
107 return entity
108
109 return unescape(entity)
110
111 return MarkdownDocumentBackend._ENTITY_RE.sub(replace, text)
112

Callers 15

mainFunction · 0.80
_add_child_elementsFunction · 0.80
split_by_newlineMethod · 0.80
convertMethod · 0.80
_clean_unicodeMethod · 0.80
_handle_text_elementsMethod · 0.80
_handle_tablesMethod · 0.80

Calls

no outgoing calls