This package has been deprecated

Author message:

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

stratic-strip-header

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i stratic-strip-header

Weekly Downloads

0

Version

1.0.0

License

LGPL-3.0+

Last publish

Collaborators

  • strugee