remark-footnotes-extra

0.3.0 • Public • Published

remark-footnotes-extra

Install

pnpm add -D remark-footnotes-extra

Input:

hello world^[this is footnote]

Output:

output

Usage

import remarkFootnotesExtra from "remark-footnotes-extra";
import rehypeStringify from "rehype-stringify";
import remarkParse from "remark-parse";
import remarkRehype from "remark-rehype";
import { unified } from "unified";

const processor = unified()
    .use(remarkParse)
    .use(remarkFootnotesExtra)
    .use(remarkRehype, { allowDangerousHtml: true })
    .use(rehypeStringify);

const value = "hello world^[this is footnote]";
const file = await processor.process(value);
console.log(String(file));

Readme

Keywords

Package Sidebar

Install

npm i remark-footnotes-extra

Weekly Downloads

14

Version

0.3.0

License

MIT

Unpacked Size

29.8 kB

Total Files

12

Last publish

Collaborators

  • miaobuao