tui-table-of-contents

1.4.0 • Public • Published

tui.tableofcontents

npm (scoped) npm bundle size (minified)

A table of contents custom plugin for Toast UI. Render a table of contents in real-time.

Screenshot of the demo of tui.tableofcontents Toast-UI Plugin.

Install

$ npm install @shreyravi/tui-table-of-contents

Usage

  1. Import the plugin:
import tableOfContentsPlugin from 'tui-table-of-contents';
  1. Insert into ToastEditor instance:
import { Editor } from '@toast-ui/react-editor';
...
      <Editor
          plugins={[tableOfContentsPlugin]}
      />
...
  1. Click on the "Toggle Table of Content" at end of Toolbar to show/hide the auto-generated table of contents.

License

MIT License. Open Source. Contact author with any concerns.

Package Sidebar

Install

npm i tui-table-of-contents

Weekly Downloads

5

Version

1.4.0

License

MIT

Unpacked Size

10.5 kB

Total Files

6

Last publish

Collaborators

  • shreyravi