tui-table-of-contents
v1.4.0
Published
A table of contents custom plugin for Toast UI. Render a table of contents in real-time.
Downloads
4
Maintainers
Readme
tui.tableofcontents
A table of contents custom plugin for Toast UI. Render a table of contents in real-time.
Install
$ npm install @shreyravi/tui-table-of-contents
Usage
- Import the plugin:
import tableOfContentsPlugin from 'tui-table-of-contents';
- Insert into
ToastEditor
instance:
import { Editor } from '@toast-ui/react-editor';
...
<Editor
plugins={[tableOfContentsPlugin]}
/>
...
- 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.