langchain/document_loaders/obsidian.py/ObsidianLoader/_remove_front_matter
class ObsidianLoader:    def _remove_front_matter(self, content: str) -> str:
        """Remove front matter metadata from the given content."""
        if not self.collect_metadata:
            return content
        return self.FRONT_MATTER_REGEX.sub("", content)