2020-08-19 03:39:41 +08:00
|
|
|
|
# ListItem
|
2020-08-20 21:33:16 +08:00
|
|
|
|
Enables you to use the `<li>` HTML tag in the editor.
|
2020-08-19 03:39:41 +08:00
|
|
|
|
|
|
|
|
|
::: warning Restrictions
|
|
|
|
|
This extensions is intended to be used with the `BulletList` or `OrderedList` extension.
|
2020-09-09 22:15:22 +08:00
|
|
|
|
:::
|
|
|
|
|
|
2020-09-23 15:52:04 +08:00
|
|
|
|
## Installation
|
|
|
|
|
```bash
|
|
|
|
|
# With npm
|
|
|
|
|
npm install @tiptap/extension-list-item
|
|
|
|
|
|
|
|
|
|
# Or: With Yarn
|
|
|
|
|
yarn add @tiptap/extension-list-item
|
|
|
|
|
```
|
|
|
|
|
|
2020-09-23 18:03:03 +08:00
|
|
|
|
## Settings
|
2020-09-10 16:21:24 +08:00
|
|
|
|
| Option | Type | Default | Description |
|
|
|
|
|
| ------ | ------ | ------- | -------------------------------------------- |
|
|
|
|
|
| class | string | – | Add a custom class to the rendered HTML tag. |
|