improve extensions documentation, add italic documentation
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
This extension is used to render text in **bold**. If you pass `<strong>`, `<b>` tags, or text with inline `style` attributes setting the `font-weight` CSS rule in the editor’s initial content, they will all be rendered accordingly.
|
||||
|
||||
::: warning Restrictions
|
||||
The extension will generate the corresponding `<strong>` HTML tags when reading contents of the `Editor` instance. All text marked as bold, regardless of the method will be normalized to `<strong>` HTML tags.
|
||||
The extension will generate the corresponding `<strong>` HTML tags when reading contents of the `Editor` instance. All text marked bold, regardless of the method will be normalized to `<strong>` HTML tags.
|
||||
:::
|
||||
|
||||
## Options
|
||||
@@ -11,15 +11,14 @@ The extension will generate the corresponding `<strong>` HTML tags when reading
|
||||
## Commands
|
||||
| Command | Options | Description |
|
||||
| ------ | ---- | ---------------- |
|
||||
| bold | none | Mark text as bold. |
|
||||
| bold | — | Mark text bold. |
|
||||
|
||||
## Keybindings
|
||||
* Windows & Linux: `Control` + `B`
|
||||
* macOS: `Command` + `B`
|
||||
|
||||
## Usage
|
||||
<Demo name="Extensions/Bold" />
|
||||
|
||||
## Source Code
|
||||
|
||||
[packages/extension-bold/index.ts](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-bold/index.ts)
|
||||
|
||||
## Usage
|
||||
<Demo name="Extensions/Bold" highlight="3-5,17,36" />
|
||||
Reference in New Issue
Block a user