From 49b47c837b906089d14c412ea2a3ee0848acc88b Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Sun, 27 Sep 2020 11:01:25 +0200 Subject: [PATCH] replace non-breaking-space with html entity --- .../src/docPages/api/extensions/blockquote.md | 4 +- docs/src/docPages/api/extensions/bold.md | 4 +- .../docPages/api/extensions/bullet-list.md | 2 +- .../src/docPages/api/extensions/code-block.md | 2 +- docs/src/docPages/api/extensions/code.md | 2 +- .../src/docPages/api/extensions/hard-break.md | 6 +- docs/src/docPages/api/extensions/heading.md | 4 +- docs/src/docPages/api/extensions/history.md | 8 +- docs/src/docPages/api/extensions/italic.md | 4 +- docs/src/docPages/api/extensions/list-item.md | 2 +- .../docPages/api/extensions/ordered-list.md | 2 +- docs/src/docPages/api/extensions/paragraph.md | 4 +- docs/src/docPages/api/extensions/strike.md | 4 +- docs/src/docPages/api/extensions/underline.md | 4 +- docs/src/docPages/api/keyboard-shortcuts.md | 102 +++++++++--------- docs/src/docPages/guide/custom-styling.md | 4 +- 16 files changed, 79 insertions(+), 79 deletions(-) diff --git a/docs/src/docPages/api/extensions/blockquote.md b/docs/src/docPages/api/extensions/blockquote.md index f4d46552..d70deaf4 100644 --- a/docs/src/docPages/api/extensions/blockquote.md +++ b/docs/src/docPages/api/extensions/blockquote.md @@ -23,8 +23,8 @@ yarn add @tiptap/extension-blockquote | blockquote | — | Wrap content in a blockquote. | ## Keyboard shortcuts -* Windows/Linux: `Control` `Shift` `9` -* macOS: `Cmd` `Shift` `9` +* Windows/Linux: `Control` `Shift` `9` +* macOS: `Cmd` `Shift` `9` ## Source code [packages/extension-blockquote/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-blockquote/) diff --git a/docs/src/docPages/api/extensions/bold.md b/docs/src/docPages/api/extensions/bold.md index 1ca9fa56..9cecd744 100644 --- a/docs/src/docPages/api/extensions/bold.md +++ b/docs/src/docPages/api/extensions/bold.md @@ -27,8 +27,8 @@ yarn add @tiptap/extension-bold | bold | — | Mark text bold. | ## Keyboard shortcuts -* Windows/Linux: `Control` `B` -* macOS: `Cmd` `B` +* Windows/Linux: `Control` `B` +* macOS: `Cmd` `B` ## Source code [packages/extension-bold/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-bold/) diff --git a/docs/src/docPages/api/extensions/bullet-list.md b/docs/src/docPages/api/extensions/bullet-list.md index 6f273238..91cbdb76 100644 --- a/docs/src/docPages/api/extensions/bullet-list.md +++ b/docs/src/docPages/api/extensions/bullet-list.md @@ -27,7 +27,7 @@ yarn add @tiptap/extension-bullet-list @tiptap/extension-list-item | bullet_list | — | Toggle a bullet list. | ## Keyboard shortcuts -* `Control` `Shift` `8` +* `Control` `Shift` `8` ## Source code [packages/extension-bullet-list/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-bullet-list/) diff --git a/docs/src/docPages/api/extensions/code-block.md b/docs/src/docPages/api/extensions/code-block.md index 76fc1b89..7f58eff6 100644 --- a/docs/src/docPages/api/extensions/code-block.md +++ b/docs/src/docPages/api/extensions/code-block.md @@ -27,7 +27,7 @@ yarn add @tiptap/extension-code-block | codeBlock | — | Wrap content in a code block. | ## Keyboard shortcuts -* `Shift` `Control` `\` +* `Shift` `Control` `\` ## Source code [packages/extension-code-block/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-code-block/) diff --git a/docs/src/docPages/api/extensions/code.md b/docs/src/docPages/api/extensions/code.md index 8555c55b..2c02666c 100644 --- a/docs/src/docPages/api/extensions/code.md +++ b/docs/src/docPages/api/extensions/code.md @@ -23,7 +23,7 @@ yarn add @tiptap/extension-code | code | — | Mark text as inline code. | ## Keyboard shortcuts -* `Alt ` ` +* `Alt ` ` ## Source code [packages/extension-code/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-code/) diff --git a/docs/src/docPages/api/extensions/hard-break.md b/docs/src/docPages/api/extensions/hard-break.md index 563e1d0b..ae6687f4 100644 --- a/docs/src/docPages/api/extensions/hard-break.md +++ b/docs/src/docPages/api/extensions/hard-break.md @@ -19,9 +19,9 @@ yarn add @tiptap/extension-hard-break | hardBreak | — | Add a line break. | ## Keyboard shortcuts -* `Shift` `Enter` -* Windows/Linux: `Control` `Enter` -* macOS: `Cmd` `Enter` +* `Shift` `Enter` +* Windows/Linux: `Control` `Enter` +* macOS: `Cmd` `Enter` ## Source code [packages/extension-hard-break/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-hard-break/) diff --git a/docs/src/docPages/api/extensions/heading.md b/docs/src/docPages/api/extensions/heading.md index ddd605c3..fefd6835 100644 --- a/docs/src/docPages/api/extensions/heading.md +++ b/docs/src/docPages/api/extensions/heading.md @@ -24,8 +24,8 @@ yarn add @tiptap/extension-heading | heading | level | Creates a heading node. | ## Keyboard shortcuts -* Windows/Linux: `Control` `Alt` `1-6` -* macOS: `Cmd` `Alt` `1-6` +* Windows/Linux: `Control` `Alt` `1-6` +* macOS: `Cmd` `Alt` `1-6` ## Source code [packages/extension-heading/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-heading/) diff --git a/docs/src/docPages/api/extensions/history.md b/docs/src/docPages/api/extensions/history.md index 4c1c6de8..7b4623f1 100644 --- a/docs/src/docPages/api/extensions/history.md +++ b/docs/src/docPages/api/extensions/history.md @@ -23,12 +23,12 @@ yarn add @tiptap/extension-history ## Keyboard shortcuts ### Undo -* Windows/Linux: `Control` `Z` -* macOS: `Cmd` `Z` +* Windows/Linux: `Control` `Z` +* macOS: `Cmd` `Z` ### Redo -* Windows/Linux: `Shift` `Control` `Z` -* macOS: `Shift` `Cmd` `Z` +* Windows/Linux: `Shift` `Control` `Z` +* macOS: `Shift` `Cmd` `Z` ## Source code [packages/extension-history/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-history/) diff --git a/docs/src/docPages/api/extensions/italic.md b/docs/src/docPages/api/extensions/italic.md index 6c540efb..b917844d 100644 --- a/docs/src/docPages/api/extensions/italic.md +++ b/docs/src/docPages/api/extensions/italic.md @@ -27,8 +27,8 @@ yarn add @tiptap/extension-italic | italic | — | Mark text italic. | ## Keyboard shortcuts -* Windows/Linux: `Control` `I` -* macOS: `Cmd` `I` +* Windows/Linux: `Control` `I` +* macOS: `Cmd` `I` ## Source code [packages/extension-italic/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-italic/) diff --git a/docs/src/docPages/api/extensions/list-item.md b/docs/src/docPages/api/extensions/list-item.md index 6871af2c..8a81fb38 100644 --- a/docs/src/docPages/api/extensions/list-item.md +++ b/docs/src/docPages/api/extensions/list-item.md @@ -25,7 +25,7 @@ yarn add @tiptap/extension-list-item ## Keyboard shortcuts * New list item: `Enter` * Sink a list item: `Tab` -* Lift a list item: `Shift` `Tab` +* Lift a list item: `Shift` `Tab` ## Source code [packages/extension-list-item/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-list-item/) diff --git a/docs/src/docPages/api/extensions/ordered-list.md b/docs/src/docPages/api/extensions/ordered-list.md index 192c48ea..3e9c2fd8 100644 --- a/docs/src/docPages/api/extensions/ordered-list.md +++ b/docs/src/docPages/api/extensions/ordered-list.md @@ -27,7 +27,7 @@ yarn add @tiptap/extension-ordered-list @tiptap/extension-list-item | ordered_list | — | Toggle a ordered list. | ## Keyboard shortcuts -* `Control` `Shift` `9` +* `Control` `Shift` `9` ## Source code [packages/extension-ordered-list/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-ordered-list/) diff --git a/docs/src/docPages/api/extensions/paragraph.md b/docs/src/docPages/api/extensions/paragraph.md index c47a55af..feac7701 100644 --- a/docs/src/docPages/api/extensions/paragraph.md +++ b/docs/src/docPages/api/extensions/paragraph.md @@ -25,8 +25,8 @@ yarn add @tiptap/extension-paragraph | paragraph | — | Transforms all selected nodes to paragraphs. | ## Keyboard shortcuts -* Windows & Linux: `Control` `Alt` `0` -* macOS: `Cmd` `Alt` `0` +* Windows & Linux: `Control` `Alt` `0` +* macOS: `Cmd` `Alt` `0` ## Source code [packages/extension-paragraph/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-paragraph/) diff --git a/docs/src/docPages/api/extensions/strike.md b/docs/src/docPages/api/extensions/strike.md index 4043b90b..15729c2e 100644 --- a/docs/src/docPages/api/extensions/strike.md +++ b/docs/src/docPages/api/extensions/strike.md @@ -27,8 +27,8 @@ yarn add @tiptap/extension-strike | strike | — | Mark text as strikethrough. | ## Keyboard shortcuts -* Windows/Linux: `Control` `D` -* macOS: `Cmd` `D` +* Windows/Linux: `Control` `D` +* macOS: `Cmd` `D` ## Source code [packages/extension-strike/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-strike/) diff --git a/docs/src/docPages/api/extensions/underline.md b/docs/src/docPages/api/extensions/underline.md index e2992f4d..08b4616c 100644 --- a/docs/src/docPages/api/extensions/underline.md +++ b/docs/src/docPages/api/extensions/underline.md @@ -27,8 +27,8 @@ yarn add @tiptap/extension-underline | underline | — | Mark text as underlined. | ## Keyboard shortcuts -* Windows/Linux: `Control` `U` -* macOS: `Cmd` `U` +* Windows/Linux: `Control` `U` +* macOS: `Cmd` `U` ## Source code [packages/extension-underline/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-underline/) diff --git a/docs/src/docPages/api/keyboard-shortcuts.md b/docs/src/docPages/api/keyboard-shortcuts.md index cee7e61c..122d676f 100644 --- a/docs/src/docPages/api/keyboard-shortcuts.md +++ b/docs/src/docPages/api/keyboard-shortcuts.md @@ -37,66 +37,66 @@ new Editor({ ### Essentials | Action | Windows/Linux | macOS | | ------------------------ | --------------------- | ----------------- | -| Copy | `Control` `C` | `Cmd` `C` | -| Cut | `Control` `X` | `Cmd` `X` | -| Paste | `Control` `V` | `Cmd` `V` | -| Paste without formatting | `Control` `Shift` `V` | `Cmd` `Shift` `V` | -| Undo | `Control` `Z` | `Cmd` `Z` | -| Redo | `Control` `Shift` `Z` | `Cmd` `Shift` `Z` | -| Insert or edit link | `Control` `K` | `Cmd` `K` | -| Open link | `Alt` `Enter` | `Alt` `Enter` | -| Find | `Control` `F` | `Cmd` `F` | -| Find and replace | `Control` `H` | `Cmd` `Shift` `H` | -| Find again | `Control` `G` | `Cmd` `G` | -| Find previous | `Control` `Shift` `G` | `Cmd` `Shift` `G` | -| Repeat last action | `Control` `Y` | `Cmd` `Y` | -| Add a line break | `Shift` `Enter` | `Shift` `Enter` | +| Copy | `Control` `C` | `Cmd` `C` | +| Cut | `Control` `X` | `Cmd` `X` | +| Paste | `Control` `V` | `Cmd` `V` | +| Paste without formatting | `Control` `Shift` `V` | `Cmd` `Shift` `V` | +| Undo | `Control` `Z` | `Cmd` `Z` | +| Redo | `Control` `Shift` `Z` | `Cmd` `Shift` `Z` | +| Insert or edit link | `Control` `K` | `Cmd` `K` | +| Open link | `Alt` `Enter` | `Alt` `Enter` | +| Find | `Control` `F` | `Cmd` `F` | +| Find and replace | `Control` `H` | `Cmd` `Shift` `H` | +| Find again | `Control` `G` | `Cmd` `G` | +| Find previous | `Control` `Shift` `G` | `Cmd` `Shift` `G` | +| Repeat last action | `Control` `Y` | `Cmd` `Y` | +| Add a line break | `Shift` `Enter` | `Shift` `Enter` | ### Text Formatting | Action | Windows/Linux | macOS | | --------------------- | --------------------------------------------- | ----------------- | -| Bold | `Control` `B` | `Cmd` `B` | -| Italicize | `Control` `I` | `Cmd` `I` | -| Underline | `Control` `U` | `Cmd` `U` | -| Strikethrough | `Alt` `Shift` `5` | `Cmd` `Shift` `X` | -| Superscript | `Control` `.` | `Cmd` `.` | -| Subscript | `Control` `,` | `Cmd` `,` | -| Copy text formatting | `Control` `Alt` `C` | `Cmd` `Alt` `C` | -| Paste text formatting | `Control` `Alt` `V` | `Cmd` `Alt` `V` | -| Clear text formatting | `Control` \
`Control` `Space` | `Cmd` `\` | -| Increase font size | `Control` `Shift` `>` | `Cmd` `Shift` `>` | -| Decrease font size | `Control` `Shift` `<` | `Cmd` `Shift` `<` | +| Bold | `Control` `B` | `Cmd` `B` | +| Italicize | `Control` `I` | `Cmd` `I` | +| Underline | `Control` `U` | `Cmd` `U` | +| Strikethrough | `Alt` `Shift` `5` | `Cmd` `Shift` `X` | +| Superscript | `Control` `.` | `Cmd` `.` | +| Subscript | `Control` `,` | `Cmd` `,` | +| Copy text formatting | `Control` `Alt` `C` | `Cmd` `Alt` `C` | +| Paste text formatting | `Control` `Alt` `V` | `Cmd` `Alt` `V` | +| Clear text formatting | `Control` \
`Control` `Space` | `Cmd` `\` | +| Increase font size | `Control` `Shift` `>` | `Cmd` `Shift` `>` | +| Decrease font size | `Control` `Shift` `<` | `Cmd` `Shift` `<` | ### Paragraph Formatting | Action | Windows/Linux | macOS | | ------------------------------ | --------------------- | --------------------- | -| Increase paragraph indentation | `Control` `]` | `Cmd` `]` | -| Decrease paragraph indentation | `Control` `[` | `Cmd` `[` | -| Apply normal text style | `Control` `Alt` `0` | `Cmd` `Alt` `0` | -| Apply heading style 1 | `Control` `Alt` `1` | `Cmd` `Alt` `1` | -| Apply heading style 2 | `Control` `Alt` `2` | `Cmd` `Alt` `2` | -| Apply heading style 3 | `Control` `Alt` `3` | `Cmd` `Alt` `3` | -| Apply heading style 4 | `Control` `Alt` `4` | `Cmd` `Alt` `4` | -| Apply heading style 5 | `Control` `Alt` `5` | `Cmd` `Alt` `5` | -| Apply heading style 6 | `Control` `Alt` `6` | `Cmd` `Alt` `6` | -| Left align | `Control` `Shift` `L` | `Cmd` `Shift` `L` | -| Center align | `Control` `Shift` `E` | `Cmd` `Shift` `E` | -| Right align | `Control` `Shift` `R` | `Cmd` `Shift` `R` | -| Justify | `Control` `Shift` `J` | `Cmd` `Shift` `J` | -| Numbered list | `Control` `Shift` `7` | `Cmd` `Shift` `7` | -| Bulleted list | `Control` `Shift` `8` | `Cmd` `Shift` `8` | -| Move paragraph up | `Control` `Shift` `↑` | `Control` `Shift` `↑` | -| Move paragraph down | `Control` `Shift` `↓` | `Control` `Shift` `↓` | +| Increase paragraph indentation | `Control` `]` | `Cmd` `]` | +| Decrease paragraph indentation | `Control` `[` | `Cmd` `[` | +| Apply normal text style | `Control` `Alt` `0` | `Cmd` `Alt` `0` | +| Apply heading style 1 | `Control` `Alt` `1` | `Cmd` `Alt` `1` | +| Apply heading style 2 | `Control` `Alt` `2` | `Cmd` `Alt` `2` | +| Apply heading style 3 | `Control` `Alt` `3` | `Cmd` `Alt` `3` | +| Apply heading style 4 | `Control` `Alt` `4` | `Cmd` `Alt` `4` | +| Apply heading style 5 | `Control` `Alt` `5` | `Cmd` `Alt` `5` | +| Apply heading style 6 | `Control` `Alt` `6` | `Cmd` `Alt` `6` | +| Left align | `Control` `Shift` `L` | `Cmd` `Shift` `L` | +| Center align | `Control` `Shift` `E` | `Cmd` `Shift` `E` | +| Right align | `Control` `Shift` `R` | `Cmd` `Shift` `R` | +| Justify | `Control` `Shift` `J` | `Cmd` `Shift` `J` | +| Numbered list | `Control` `Shift` `7` | `Cmd` `Shift` `7` | +| Bulleted list | `Control` `Shift` `8` | `Cmd` `Shift` `8` | +| Move paragraph up | `Control` `Shift` `↑` | `Control` `Shift` `↑` | +| Move paragraph down | `Control` `Shift` `↓` | `Control` `Shift` `↓` | ### Text Selection | Action | Windows/Linux | macOS | | ------------------------------------------------- | --------------------- | ----------------- | -| Select all | `Control` `A` | `Cmd` `A` | -| Extend selection one character to left | `Shift` `←` | `Shift` `←` | -| Extend selection one character to right | `Shift` `→` | `Shift` `→` | -| Extend selection one line up | `Shift` `↑` | `Shift` `↑` | -| Extend selection one line down | `Shift` `↓` | `Shift` `↓` | -| Extend selection one paragraph up | `Alt` `Shift` `↑` | `Alt` `Shift` `↑` | -| Extend selection one paragraph down | `Alt` `Shift` `↓` | `Alt` `Shift` `↓` | -| Extend selection to the beginning of the document | `Control` `Shift` `↑` | `Cmd` `Shift` `↑` | -| Extend selection to the end of the document | `Control` `Shift` `↓` | `Cmd` `Shift` `↓` | +| Select all | `Control` `A` | `Cmd` `A` | +| Extend selection one character to left | `Shift` `←` | `Shift` `←` | +| Extend selection one character to right | `Shift` `→` | `Shift` `→` | +| Extend selection one line up | `Shift` `↑` | `Shift` `↑` | +| Extend selection one line down | `Shift` `↓` | `Shift` `↓` | +| Extend selection one paragraph up | `Alt` `Shift` `↑` | `Alt` `Shift` `↑` | +| Extend selection one paragraph down | `Alt` `Shift` `↓` | `Alt` `Shift` `↓` | +| Extend selection to the beginning of the document | `Control` `Shift` `↑` | `Cmd` `Shift` `↑` | +| Extend selection to the end of the document | `Control` `Shift` `↓` | `Cmd` `Shift` `↓` | diff --git a/docs/src/docPages/guide/custom-styling.md b/docs/src/docPages/guide/custom-styling.md index 09be8b13..d3e21885 100644 --- a/docs/src/docPages/guide/custom-styling.md +++ b/docs/src/docPages/guide/custom-styling.md @@ -8,7 +8,7 @@ The whole editor is rendered inside of a container with the class `.ProseMirror` ```css /* Scoped to the editor */ -.ProseMirror p { +.ProseMirror p { margin: 1em 0; } ``` @@ -17,7 +17,7 @@ If you’re rendering the stored content somewhere, there won’t be a `.ProseMi ```css /* Global styling */ -p { +p { margin: 1em 0; } ```