1.0.0 • Published 8 years ago

stratic-strip-header v1.0.0

Weekly downloads
3
License
LGPL-3.0+
Repository
github
Last release
8 years ago

stratic-extract-header

remark plugin to strip out a standard Stratic header

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