diff --git a/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/markdown/base.py b/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/markdown/base.py index 228e749a4257f42ae1584385cc953a38459f6619..e0e39e53de5cb8b3ff2b462a46001c1628a6d1f1 100644 --- a/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/markdown/base.py +++ b/llama-index-integrations/readers/llama-index-readers-file/llama_index/readers/file/markdown/base.py @@ -71,12 +71,12 @@ class MarkdownReader(BaseReader): return markdown_tups def remove_images(self, content: str) -> str: - """Get a dictionary of a markdown file from its path.""" + """Remove images in markdown content.""" pattern = r"!{1}\[\[(.*)\]\]" return re.sub(pattern, "", content) def remove_hyperlinks(self, content: str) -> str: - """Get a dictionary of a markdown file from its path.""" + """Remove hyperlinks in markdown content.""" pattern = r"\[(.*?)\]\((.*?)\)" return re.sub(pattern, r"\1", content)