You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/fundamentals/core-concepts.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,13 +47,9 @@ sources.
47
47
:::
48
48
49
49
## 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.
50
51
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`.
57
53
All supported and canonical tags are listed in [Supported HTML tags](/fundamentals/html-format-and-supported-tags).
58
54
59
55
## Two components, one styling API
@@ -86,6 +82,7 @@ through `onChangeState`, which gives each style three booleans:
86
82
blockquote. Use it to hint that the toggle is a swap, not an addition.
87
83
88
84
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
91
88
[Supported HTML tags](/fundamentals/html-format-and-supported-tags).
0 commit comments