draft-js-markdown-shortcuts-plugin
draft-js-markdown-shortcuts-plugin copied to clipboard
Newline doesn't trigger expansion
Behavior observed on the public demo. Entering a newline does not trigger expansion like hitting space does. Example:
input:
text *highlight* text
produces: text highlight text
(note that 'highlight' is correctly italicized and the * are elided from the rendered output)
but input:
text *highlight*<newline>
text
produces: text *highlight* text
(note the * are left literal and the word 'highlight' is not italicized)
I am facing the same issue. Strangely, it works fine in the demo.