Skip to content
Snippets Groups Projects
Unverified Commit d34e5a8b authored by Julien Bouquillon's avatar Julien Bouquillon Committed by GitHub
Browse files

chore: fix doc comments (#11322)

* chore: fix doc comments

* Update base.py

* Update base.py
parent caf56ac5
No related branches found
No related tags found
No related merge requests found
...@@ -71,12 +71,12 @@ class MarkdownReader(BaseReader): ...@@ -71,12 +71,12 @@ class MarkdownReader(BaseReader):
return markdown_tups return markdown_tups
def remove_images(self, content: str) -> str: 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}\[\[(.*)\]\]" pattern = r"!{1}\[\[(.*)\]\]"
return re.sub(pattern, "", content) return re.sub(pattern, "", content)
def remove_hyperlinks(self, content: str) -> str: def remove_hyperlinks(self, content: str) -> str:
"""Get a dictionary of a markdown file from its path.""" """Remove hyperlinks in markdown content."""
pattern = r"\[(.*?)\]\((.*?)\)" pattern = r"\[(.*?)\]\((.*?)\)"
return re.sub(pattern, r"\1", content) return re.sub(pattern, r"\1", content)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment