unified

Project:Symbitic/remark-plugins

Package:remark-meta@0.2.1

  1. Dependencies:5·Dependents:0
  2. Adds YAML/TOML metadata to a VFile.
  1. remark 165
  2. remark-plugin 20

remark-bibliography

Remark plugin for making frontmatter metadata visible to other plugins.

This plugin requires remark-frontmatter. There are no visible changes to the output; this plugin is just to help other plugins by adding metadata to a VFile.

Installation

npm install --save remark-meta

Usage

import unified from 'unified'
import markdown from 'remark-parse'
import html from 'rehype-stringify'
import remark2rehype from 'remark-rehype'
import meta from 'remark-meta'
import frontmatter from 'remark-frontmatter'

unified()
  .use(markdown)
  .use(frontmatter)
  .use(meta)
  .use(remark2rehype)
  .use(html)

License

MIT © Alex Shaw