backmatter
v1.0.0
Published
Markdown metadata for those times when frontmatter just won't do.
Downloads
4
Readme
backmatter
Installation
yarn add backmatter
Usage
import {removeBackmatter, extractBackmatter} from 'backmatter';
const md = `# Hello world
\`\`\`backmatter
{"meta": "data"}
\`\`\`
`;
const backmatter = extractBackmatter(md);
// backmatter = {meta: "data"}
const removed = removeBackmatter(md);
// removed = "# Hello world\n\n"