0.3.0 • Published 6 months ago

remark-footnotes-extra v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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));
0.3.0

6 months ago

0.2.1

7 months ago

0.2.0

7 months ago

0.1.0

8 months ago