remark-footnotes-extra
v0.3.0
Published
```sh pnpm add -D remark-footnotes-extra ```
Downloads
561
Readme
remark-footnotes-extra
Install
pnpm add -D remark-footnotes-extraInput:
hello world^[this is footnote]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));