remark plugin to validate a standard Stratic header
This module is deprecated. It turns out that the Stratic header just isn't expressive enough and is t here for no good reason, really.
You should use gulp-grey-matter to parse YAML frontmatter instead. Accordingly, this package is unmaintained.
npm install stratic-validate-header
var remark = require('remark');
var validateHeader = require('stratic-validate-header');
var processor = remark().use(validateHeader);
// No output
processor.process([
'# Post information',
'"Title", "0 UTC-0","Jane Doe", "some, categories"',
'# Post text',
'Some arbitrary Markdown content'
].join('\n'));
// Throws an Error
processor.process([
'# Invalid',
'Some other Markdown'
].join('\n'));
LGPL 3.0+
Alex Jordan [email protected]