Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 506 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 506 Bytes

remark-chan

A unified plugin to convert from mdast to chast

Note

Since v3.0 this plugin is ESM only.

Install

npm install @geut/remark-chan

Use

import unified from 'unified'
import markdown from 'remark-parse'
import { remarkToChan } from '@geut/remark-chan'

unified()
  .use(markdown)
  .use(remarkToChan)
  //.. more plugins

API

origin.use(remarkToChan)

Plugin to convert from mdast to chast.