This package has been deprecated

Author message:

the Stratic header is not expressive enough; use YAML frontmatter instead

stratic-validate-header

1.0.2 • Public • Published

stratic-validate-header

remark plugin to validate a standard Stratic header

Installation

npm install stratic-validate-header

Usage

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'));

License

LGPL 3.0+

Author

Alex Jordan alex@strugee.net

Readme

Keywords

Package Sidebar

Install

npm i stratic-validate-header

Weekly Downloads

0

Version

1.0.2

License

LGPL-3.0+

Last publish

Collaborators

  • strugee