Changed YAML delimiter matcher so as to not chew up 2nd level markdown headers

This commit is contained in:
Mark Reid 2008-12-18 23:11:34 +11:00
parent 3a8f7a8e3a
commit b18ad30880
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ module Jekyll
def read_yaml(base, name)
self.content = File.read(File.join(base, name))
if self.content =~ /^(---.*\n.*?)\n---.*\n/m
if self.content =~ /^(---\s*\n.*?)\n---\s*\n/m
self.content = self.content[($1.size + 5)..-1]
self.data = YAML.load($1)