mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 09:18:11 -05:00
Changed YAML delimiter matcher so as to not chew up 2nd level markdown headers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user