1.0.0 • Published 8 years ago
stratic-strip-header v1.0.0
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
1.0.0
8 years ago