Re:Rich-markdown-editor: react Dropbox Paper clone
by anchpop on Tuesday June 09, 2020 @03:43AM
(#23464623)
There are two useful features I've found to be rare among markdown editors:
1) Inline application of markup. Discord does this for example. If you write text like this, the message preview retains the '*'s, but the text inside is italisized.
2) Persistence of text formatting when pasting from rich text. Roam Research does this. If I'm copying-and-pasting some rich text with e.g. a link in it, the link will be converted to the markdown format and then pasted.
I think to have a truly great markdown editor you need both of these things, but I've never seen an open source one with support for both. I've had a mind to find one and implement them myself, I might try that with tail.writer.
Re:Rich-markdown-editor: react Dropbox Paper clone
by bhl on Thursday June 11, 2020 @02:35AM
(#23485800)
Discord's input is built on-top of Slate.js [1], which is sort of a more React-based alternative to ProseMirror. I've thought about building the same functionality on ProseMirror but I've always thought, inline decorations only work when you have a small number of marks. For example, you could have `~~==b==~~` be valid markdown, but not nice to look at.
Re:Rich-markdown-editor: react Dropbox Paper clone
by galacticdessert on Tuesday June 09, 2020 @06:39AM
(#23465391)
Something like SimpleMDE ( https://simplemde.com/ ) ?
[1] https://github.pytes.net/tail.writer/