9 Commits

Author SHA1 Message Date
fbecc887b8 require images to be parsed as shortcodes 2017-08-25 16:30:39 -04:00
b7379b019e re-implement shortcode parsing to/from mdast 2017-08-25 16:30:38 -04:00
842c2935e9 use mdast instead of html for rte local model
markdown is currently serialized to html at load time,
which makes it near impossible to support arbitrary html
in the markdown. This also means we're stringifying to
html on every change.

This commit moves to Remark's MDAST for local serialization,
including parsing from MDAST to Slates's Raw AST. It brings
much more control over the editing experience and full
support for processing unescaped HTML.
2017-08-25 16:30:37 -04:00
93687d9157 add shortcodes through rte toolbar 2017-08-25 16:28:18 -04:00
469a50afa4 add idempotent markdown/html shortcode handling 2017-08-25 16:28:18 -04:00
09751efe41 allow raw html in markdown 2017-08-25 16:28:18 -04:00
b08a9fcaa8 improve Dropbox Paper paste handling 2017-08-25 16:28:17 -04:00
c49d84b2eb add empty node and Paper emoji unified plugins 2017-08-25 16:28:17 -04:00
5a664f8be1 remove prosemirror, reuse unified pipelines 2017-08-25 16:28:17 -04:00