News for hackers. Stuff that matters.
Re:Rich-markdown-editor: react Dropbox Paper clone by andrethegiant on Tuesday June 09, 2020 @03:21AM (#23464502)
The best markdown editor component I've found so far is tail.writer[1] – full-featured and has many themes, including one that looks just like GitHub's comment box.

[1] https://github.pytes.net/tail.writer/

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.

[1] https://www.slatejs.org/examples/markdown-preview

Re:Rich-markdown-editor: react Dropbox Paper clone by galacticdessert on Tuesday June 09, 2020 @06:39AM (#23465391)
Something like SimpleMDE ( https://simplemde.com/ ) ?
Re:Rich-markdown-editor: react Dropbox Paper clone by edjroot on Tuesday June 09, 2020 @09:15AM (#23466370)
Re:Rich-markdown-editor: react Dropbox Paper clone by jddj on Tuesday June 09, 2020 @07:20AM (#23465580)
Visual studio code does #1 for me if I'm editing a file with a .md extension.

I don't think it's plugin related, but if it is it'd be one of the top search results.