|
@ -199,7 +199,10 @@ module.exports = class Page extends Model { |
|
|
result = frontmatterRegex.markdown.exec(raw) |
|
|
result = frontmatterRegex.markdown.exec(raw) |
|
|
if (result[2]) { |
|
|
if (result[2]) { |
|
|
return { |
|
|
return { |
|
|
...yaml.safeLoad(result[2]), |
|
|
|
|
|
|
|
|
...yaml.safeLoad(result[2], { |
|
|
|
|
|
json: true, |
|
|
|
|
|
schema: yaml.CORE_SCHEMA |
|
|
|
|
|
}), |
|
|
content: result[3] |
|
|
content: result[3] |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|