Calling the RichTextEditor.createValueFromString function to convert from markdown results in a RangeError: Maximum call stack size exceeded error, when passed too many underscores:
Uncaught RangeError: Maximum call stack size exceeded
at react-rte.js:11
at react-rte.js:11
at react-rte.js:11
at react-rte.js:11
at react-rte.js:11
at react-rte.js:11
at react-rte.js:11
at react-rte.js:11
at react-rte.js:11
at react-rte.js:11
...
It doesn't seem to matter whether they are spaced out or not. It just happens when there are too many underscores.
I was able to replicate it on the demo page https://react-rte.org/demo as well, by setting a breakpoint to capture createValueFromString into a global variable, and then calling it as above.
Hi there,
Calling the RichTextEditor.createValueFromString function to convert from markdown results in a
RangeError: Maximum call stack size exceeded
error, when passed too many underscores:Example:
Results in:
It doesn't seem to matter whether they are spaced out or not. It just happens when there are too many underscores.
I was able to replicate it on the demo page https://react-rte.org/demo as well, by setting a breakpoint to capture
createValueFromString
into a global variable, and then calling it as above.