MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / MarkdownReader

Class MarkdownReader

KVCOMM/tools/reader/readers.py:119–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 return text
118
119class MarkdownReader(Reader):
120 def parse(self, file_path: Path) -> str:
121 logger.info(f"Reading Markdown file from {file_path}.")
122 with open(file_path, "r") as f:
123 data = markdown.markdown(f.read())
124 text = "".join(BeautifulSoup(data, "html.parser").findAll(string=True))
125 return text
126
127class LaTexReader(Reader):
128 def parse(self, file_path: Path) -> str:

Callers 1

readers.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected