$ npm install strip-yaml-header
Strip yaml header form markdown.
npm install strip-yaml-header
var strip = require("strip-yaml-header");
var markdown = "---\n" +
"title: title\n" +
"---\n" +
"test";
var result = normalize(markdown);
assert.equal(result, "\n" +
"\n" +
"\n" +
"test");
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE