3 ms·
You might want to see my take on a concept of a structured block-based editor for Markdown — http://andreypopp.github.io/markstruct/ http://andreypopp.github.io
by andreypopp 13y ago
You might want to see my take on a concept of a structured block-based editor for Markdown — http://andreypopp.github.io/markstruct/ http://andreypopp.github.io/markstruct/
It's still a rough draft — so expect it to work best only in Blink/WebKit now.
Some shortcuts:
* Arrows — move between blocks
* Shift + Arrows — rearrange blocks
* Enter — creates a new paragraph
* Esc — merge with previous block (only for text based blocks, remove current block otherwise)
* If paragraphs starts with # it transforms into heading (repeat # for more heading levels)
* If paragraphs starts with ``` it transform into code snippet
* Images are entered as 
* HR — *
It's just about 500LOC, Thanks to excellent React[1] library. No inline markup yet, but it's not difficult to add. Also needs some more polishing and tests.
[1]: http://facebook.github.io/react/ http://facebook.github.io/react/