xiaoliu-heng / remark-md2html-starter

Combine several commonly used plugins for compile markdown to html.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remark-md2html-starter

Combine several commonly used plugins for compile markdown to html.

Usage

import remarkStarter from "remark-md2html-starter";

const processor = remarkStarter();

const result = await processor.process(`# H1`);
// more options

processor = remarkStarter({
    allowHtml: true, // support embedded html
    math: true, // support math
    remarkPlugins: [...],
    rehypePlugins: [...],
  });

About

Combine several commonly used plugins for compile markdown to html.


Languages

Language:TypeScript 100.0%