Skip to content

Commit 23663fe

Browse files
hejsztynxCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent f44bda6 commit 23663fe

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

docs/docs/fundamentals/core-concepts.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,9 @@ sources.
4747
:::
4848

4949
## Normalization
50+
HTML can be messy. If a user pastes text from Google Docs or MS Word, it can arrive packed with wrapper tags, inline styles, and structural quirks that don't match the format we expect.
5051

51-
## Normalization
52-
53-
HTML can often be messy. If a user pastes text from Google Docs or MS Word, it arrives packed with wrapper tags, inline styles, and structural quirks that don't match the format we expect.
54-
55-
To handle this, both components provide `useHtmlNormalizer` prop that normalizes any incoming HTML. The normalizer cleans and restructures the input into the predictable format the library expects. For example, it maps `<strong>` to `<b>`, safely unwraps `<div>` containers into `<p>` tags, and strips tags that are unsupported. The `useHtmlNormalizer` prop defaults to `true`.
56-
52+
To handle this, both components provide a `useHtmlNormalizer` prop that normalizes incoming HTML. The normalizer cleans and restructures the input into the predictable format the library expects (e.g. it maps `<strong>` to `<b>`, unwraps `<div>` containers into `<p>` tags, and strips unsupported tags). The `useHtmlNormalizer` prop defaults to `true`.
5753
All supported and canonical tags are listed in [Supported HTML tags](/fundamentals/html-format-and-supported-tags).
5854

5955
## Two components, one styling API
@@ -86,6 +82,7 @@ through `onChangeState`, which gives each style three booleans:
8682
blockquote. Use it to hint that the toggle is a swap, not an addition.
8783

8884
Driving your toolbar from these three flags keeps the UI honest: buttons light
89-
up and grey out according do the editor's state.
90-
To find the comprehensive list about what style blocks or conflicts with, check out
85+
up and grey out according to the editor's state.
86+
87+
For the comprehensive list of which styles block or conflict with each other, see
9188
[Supported HTML tags](/fundamentals/html-format-and-supported-tags).

docs/docs/fundamentals/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Not only does this library allow you to apply basic rich text styles you know we
2626
like *bold* or _italic_, but also provides more powerful tools like `mentions`, something
2727
you will learn more about in the next chapters.
2828

29-
iOS and Android are and Web are all supported. iOS and Android are both stable, where Web is still experimental, so expect
29+
iOS, Android, and Web are all supported. iOS and Android are stable; Web is still experimental, so expect
3030
its behavior to change between releases.
3131

3232
## Prerequisites

0 commit comments

Comments
 (0)