diff --git a/MarkdownPreview.py b/MarkdownPreview.py index ef0e59c9..e5e783cc 100644 --- a/MarkdownPreview.py +++ b/MarkdownPreview.py @@ -489,7 +489,7 @@ def preprocessor_yaml_frontmatter(self, text): frontmatter = {} if text.startswith("---"): - m = re.search(r'^(---(.*?)---\r?\n)', text, re.DOTALL) + m = re.search(r'^(---(.*?)---[ \t]*\r?\n)', text, re.DOTALL) if m: try: frontmatter = yaml.load(m.group(2))