Try to parse markdown that contains inline-code formatted with "`".
const test = "`A quick brown fox...`";
const result = mdToDraftJs(test, { MONOSPACE: "`" });
Expected results
Editor outputs a formatted monospace "A quick brown fox...".
Actual results
Editor outputs an unstyled block with the backticks stripped away: "A quick brown fox...".
One would expect the editor to output a inline-code formatted block (called monospace in Draftjs). But instead, mdToDraftJs seems to strip away the "`" and output "test" instead.
Steps to reproduce
Expected results Editor outputs a formatted monospace "
A quick brown fox...
".Actual results Editor outputs an unstyled block with the backticks stripped away: "A quick brown fox...".
One would expect the editor to output a inline-code formatted block (called monospace in Draftjs). But instead,
mdToDraftJs
seems to strip away the "`" and output "test" instead.