add content to the typography extension page

This commit is contained in:
Hans Pagel
2020-11-05 22:47:44 +01:00
parent e90934aa96
commit dd3f84c4e3
4 changed files with 109 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
# Typography
This extension tries to help with common text patterns with the correct typographic character.
## Installation
```bash
@@ -10,8 +10,18 @@ npm install @tiptap/typography
yarn add @tiptap/typography
```
## Rules
| Name | Description |
| ---------------- | ------------------------------------------------------ |
| emDash | Converts double dashes `--` to an emdash `—`. |
| ellipsis | Converts three dots `...` to an ellipsis character `…` |
| openDoubleQuote | `“`Smart” opening double quotes. |
| closeDoubleQuote | “Smart`”` closing double quotes. |
| openSingleQuote | ``Smart opening single quotes. |
| closeSingleQuote | Smart`` closing single quotes. |
## Source code
[packages/typography/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/typography/)
## Usage
<demo name="Extensions/Typography" highlight="" />
<demo name="Extensions/Typography" highlight="12,31" />