From 6065f08636888783e674a36717862ff792466454 Mon Sep 17 00:00:00 2001 From: Lode Claassen Date: Wed, 16 Aug 2023 14:01:12 +0200 Subject: [PATCH] change to 'like this' because it is before the example instead of after --- docs/guide/custom-extensions.md | 4 ++-- docs/guide/styling.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/custom-extensions.md b/docs/guide/custom-extensions.md index 68fece1419e..13fcf481051 100644 --- a/docs/guide/custom-extensions.md +++ b/docs/guide/custom-extensions.md @@ -14,7 +14,7 @@ You’ll learn how you start from scratch at the end, but you’ll need the same ## Extend existing extensions Every extension has an `extend()` method, which takes an object with everything you want to change or add to it. -Let’s say, you’d like to change the keyboard shortcut for the bullet list. You should start with looking at the source code of the extension, in that case [the `BulletList` node](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-bullet-list/src/bullet-list.ts). For the bespoken example to overwrite the keyboard shortcut, your code could look like that: +Let’s say, you’d like to change the keyboard shortcut for the bullet list. You should start with looking at the source code of the extension, in that case [the `BulletList` node](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-bullet-list/src/bullet-list.ts). For the bespoken example to overwrite the keyboard shortcut, your code could look like this: ```js // 1. Import the extension @@ -65,7 +65,7 @@ The order in which extensions are loaded influences two things: The [`Link`](/api/marks/link) mark for example has a higher priority, which means it will be rendered as `Example` instead of `Example`. ### Settings -All settings can be configured through the extension anyway, but if you want to change the default settings, for example to provide a library on top of Tiptap for other developers, you can do it like that: +All settings can be configured through the extension anyway, but if you want to change the default settings, for example to provide a library on top of Tiptap for other developers, you can do it like this: ```js import Heading from '@tiptap/extension-heading' diff --git a/docs/guide/styling.md b/docs/guide/styling.md index ab50ae7ba80..7a82de1ced5 100644 --- a/docs/guide/styling.md +++ b/docs/guide/styling.md @@ -52,7 +52,7 @@ new Editor({ }) ``` -The rendered HTML will look like that: +The rendered HTML will look like this: ```html

Example Text