Skip to content

Commit c54bef6

Browse files
Update README.md
1 parent 3fa6bb6 commit c54bef6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To use JSON RTE Serializer with Node.js-based applications, you will need the fo
1010

1111
- Node.js 10 or later
1212

13-
Install the json-rte-serializer package via npm using the following command:
13+
Install the `json-rte-serializer` package via npm using the following command:
1414

1515
```bash
1616
npm install @contentstack/json-rte-serializer
@@ -257,7 +257,7 @@ console.log(jsonValue);
257257

258258
> **_Note_**: The custom parser's key must always be capitalized and exactly match the custom HTML tag.
259259
260-
### Result of conversion
260+
### Result of Conversion
261261

262262
The resulting JSON-formatted data will look as follows:
263263

@@ -318,8 +318,7 @@ The resulting JSON-formatted data will look as follows:
318318

319319
By default, the JSON Rich Text Editor field supports limited HTML tags within the editor. Due to this, the JSON RTE Serializer tool is not able to recognize each and every standard HTML tag.
320320

321-
To help the editor recognize and process additional tags that are commonly used across HTML, you can use the automatic conversion option with the JSON RTE Serializer tool. When using this option, you need to pass the `allowNonStandardTags: true` parameter within the `jsonToHtml` or `htmlToJson` method to manipulate the working of the JSON RTE Serializer package as per your requirements. When you pass this parameter, it customizes your JSON RTE Serializer code to allow the support for all standard HTML-recognized tags or element types in the JSON Rich Text Editor field.
322-
321+
To help the JSON RTE Serializer recognize and process additional tags that are commonly used across HTML, you can use the automatic conversion option. When using this option, you need to pass the `allowNonStandardTags: true` parameter within the `jsonToHtml` or `htmlToJson` method to manipulate the working of the JSON RTE Serializer package as per your requirements. When you pass this parameter, it customizes your JSON RTE Serializer code to allow the support for all standard HTML-recognized tags or element types in the JSON Rich Text Editor field.
323322

324323
### Convert JSON to HTML
325324

@@ -433,7 +432,7 @@ const jsonValue = htmlToJson(htmlDomBody, {
433432

434433
console.log(jsonValue);
435434
```
436-
### Result of conversion
435+
### Result of Conversion
437436
The resulting JSON-formatted data will look as follows:
438437

439438
```json

0 commit comments

Comments
 (0)