Skip to content
This repository has been archived by the owner on Jan 1, 2018. It is now read-only.

[deprecated] remark plugin to validate a standard Stratic header

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

straticjs/stratic-validate-header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stratic-validate-header

remark plugin to validate a standard Stratic header

DEPRECATED

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.

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 [email protected]

About

[deprecated] remark plugin to validate a standard Stratic header

Topics

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published