1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-13 02:34:05 +02:00

Update scrubber.md (#5818)

improve readability
This commit is contained in:
Mohataseem Khan
2025-03-17 07:58:09 +05:30
committed by GitHub
parent c183827ca8
commit 8b8fc58efc

View File

@@ -24,7 +24,7 @@ Scrubber.setScrubber((key, value) => {
```
By setting the scrubber in this way, the error example given above will be
printed as
printed as:
```
Cannot get the child of a text node: {"text": "... scrubbed ..."}
@@ -62,7 +62,7 @@ const generateRandomCharacter = (): string => {
Scrubber.setScrubber(Scrubber.textRandomizer(['text', 'src']))
```
In this example, a Node that looked like
In this example, a Node that looked like:
```json
{ "text": "My test input string", "count": 5 }