tiptap/docs/src/docPages/api/extensions/list-item.md

20 lines
563 B
Markdown
Raw Normal View History

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.
:::
## 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. |