MCPcopy Create free account
hub / github.com/Tencent/WeKnora / parse_into_text

Method parse_into_text

docreader/parser/markdown_parser.py:211–224  ·  view source on GitHub ↗

Parse and format Markdown tables. Args: content: Raw Markdown content as bytes Returns: Document with formatted table content

(self, content: bytes)

Source from the content-addressed store, hash-verified

209 self.table_helper = MarkdownTableUtil()
210
211 def parse_into_text(self, content: bytes) -> Document:
212 """Parse and format Markdown tables.
213
214 Args:
215 content: Raw Markdown content as bytes
216
217 Returns:
218 Document with formatted table content
219 """
220 # Decode bytes to string with automatic encoding detection
221 text = endecode.decode_bytes(content)
222 # Format all tables in the content
223 text = self.table_helper.format_table(text)
224 return Document(content=text)
225
226
227class MarkdownImageUtil:

Callers

nothing calls this directly

Calls 2

DocumentClass · 0.90
format_tableMethod · 0.80

Tested by

no test coverage detected