Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Commit

Permalink
Fix yaml regex
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Feb 6, 2015
1 parent 1716bfc commit 35b067d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarkdownPreview.py
Expand Up @@ -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))
Expand Down

0 comments on commit 35b067d

Please sign in to comment.