Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
feat(matter): make frontmatter less verbose (#727)
Browse files Browse the repository at this point in the history
fixes: #721
  • Loading branch information
tripodsan authored May 20, 2020
1 parent b8d8765 commit ef1502c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/html/remark-matter.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ function createTokenizer(opts) {
return false;
}

function info(msg, sourceref) {
logger.info(`${msg}\n${sourceref}`);
return false;
}

/**
* Frontmatter tokenizer.
* @param {function} eat The remark eat function.
Expand All @@ -71,10 +66,7 @@ function createTokenizer(opts) {

// reject ambiguous yaml
if (/^\s*[^a-zA-Z"{\s-]/m.test(src)) {
return info(
'Found ambiguous frontmatter fence: Block contains yaml key not starting with a letter. '
+ 'If this was intended, escape the key with quotes. ', src,
);
return false;
}

// needs to be end of document or followed by a new line
Expand Down

0 comments on commit ef1502c

Please sign in to comment.