/stratic-strip-header

[deprecated] remark plugin to strip out a standard Stratic header

Primary LanguageJavaScriptGNU Lesser General Public License v3.0LGPL-3.0

stratic-extract-header

remark plugin to strip out 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-strip-header

Usage

var remark = require('remark');
var stripHeader = require('stratic-strip-header');

var processor = remark().use(stripHeader);

var doc = processor.process([
    '# Post information',
    '"Title", "0 UTC-0","Jane Doe", "some, categories"',
	'# Post text',
	'Some arbitrary Markdown content'
].join('\n'));

console.log(doc);

Outputs:

Some arbitrary Markdown content

License

LGPL 3.0+

Author

Alex Jordan alex@strugee.net