Skip to content

Commit

Permalink
rm other references
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Aug 24, 2021
1 parent 17a0afa commit 581dfec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 118 deletions.
71 changes: 0 additions & 71 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,77 +76,6 @@ When the parser is used in a non-streaming fashion, `endIndex` is an integer
indicating the position of the end of the node in the document.
The default value is `false`.

## Option: `normalizeWhitespace` _(deprecated)_

Replace all whitespace with single spaces.
The default value is `false`.

**Note:** Enabling this might break your markup.

For the following examples, this HTML will be used:

```html
<font> <br />this is the text <font></font></font>
```

### Example: `normalizeWhitespace: true`

```javascript
[
{
type: "tag",
name: "font",
children: [
{
data: " ",
type: "text",
},
{
type: "tag",
name: "br",
},
{
data: "this is the text ",
type: "text",
},
{
type: "tag",
name: "font",
},
],
},
];
```

### Example: `normalizeWhitespace: false`

```javascript
[
{
type: "tag",
name: "font",
children: [
{
data: "\n\t",
type: "text",
},
{
type: "tag",
name: "br",
},
{
data: "this is the text\n",
type: "text",
},
{
type: "tag",
name: "font",
},
],
},
];
```

---

License: BSD-2-Clause
Expand Down
47 changes: 0 additions & 47 deletions src/__fixtures__/16-normalize_whitespace.json

This file was deleted.

0 comments on commit 581dfec

Please sign in to comment.