Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,19 @@ function parseMarkdownWithFrontMatter(string) {
let frontMatterTypes = [
{
type: 'yaml',
startDelimiter: '---\n',
startDelimiter: '---',
endDelimiter: '\n---',
parse: (string) => yaml.safeLoad(string, {schema: yaml.JSON_SCHEMA})
},
{
type: 'toml',
startDelimiter: '+++\n',
startDelimiter: '+++',
endDelimiter: '\n+++',
parse: (string) => toml.parse(string)
},
{
type: 'json',
startDelimiter: '{\n',
startDelimiter: '{',
endDelimiter: '\n}',
parse: (string) => JSON.parse(string)
}
Expand Down