-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(richtext-lexical): more lenient MDX JSON object parser that allo…
…ws unquoted property keys (#10205) Previously, the following MDX could not be parsed by lexical: ```tsx <RestExamples data={[ { operation: "Find" } ]} ``` Instead, it had to be converted into valid JSON: ```tsx <RestExamples data={[ { "operation": "Find" } ]} ``` This PR permits using the first example, as it swaps out JSON.parse with them ore lenient [json5](https://www.npmjs.com/package/json5) package parser
- Loading branch information
Showing
5 changed files
with
52 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.