1.4.0 • Published 5 years ago
tui-table-of-contents v1.4.0
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-contentsUsage
- Import the plugin:
import tableOfContentsPlugin from 'tui-table-of-contents';- Insert into
ToastEditorinstance:
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.