Need private packages and team management tools?Check out npm Teams »

parcel-plugin-mdx-with-toc

1.0.1 • Public • Published

parcel-plugin-mdx-with-toc

An experimental Parcel v1 plugin for MDX that also exports Table of Contents using markdown-toc and github-slugger to generate anchor names for headings.

Note: This plugin is based on the official parcel-plugin-mdx and modified to also export the Table of Contents. If you don't need a Table of Contents, you are better off using the official parcel-plugin-mdx.

Installation

npm:

npm i -D parcel-plugin-mdx-with-toc

Or with Yarn:

yarn add -D parcel-plugin-mdx-with-toc

Usage

// index.js
import MDXContent, {Toc} from './content.mdx';
...
 
render(<><Toc /><MDXContent /></>, root);

License

MIT

Keywords

Install

npm i parcel-plugin-mdx-with-toc

DownloadsWeekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

9.12 kB

Total Files

13

Last publish

Collaborators

  • avatar