danhper / atomic-chrome

Edit Chrome textareas in Atom
https://goo.gl/Et0hwg
MIT License
917 stars 30 forks source link

Convert markdown for email #4

Open piascikj opened 8 years ago

piascikj commented 8 years ago

It would be really cool to toggle the output to html for markdown text. I've always wanted to write my emails in markdown inside gmail.

steelbrain commented 8 years ago

:+1:

danhper commented 8 years ago

I am planning on adding this feature, but it does require quite a bit of work. We need a markdown -> contenteditable HTML converter, as the HTML used inside gmail is not really conventional, so a normal Markdown renderer would not be good enough. I will tackle this as soon as possible, but any help is very welcome!

joseluisq commented 8 years ago

:+1:

orawalters commented 8 years ago

:+1:

lucasbento commented 8 years ago

:+1:

danhper commented 8 years ago

The work is in progress but I did not have much recently. If anyone wants to help, the work in progress is here.

https://github.com/tuvistavie/meditable

The plan is to have an ultra minimal AST representing a subset of the DOM that can be expressed in markdown, then make the conversion from/to the AST losing the less information possible.

zeke commented 8 years ago

I've always wanted to write my emails in markdown inside gmail.

See http://markdown-here.com/

danhper commented 8 years ago

I did know about markdown-here but I did not know it also converted HTML to markdown, I am going to see if I can use the common module, that will save me from reinventing the wheel :smile:

Zerim commented 7 years ago

@tuvistavie Not sure if this library still being worked on... but would there be any interest in generalizing whatever you solution come up with above to work w/ any sort of transpilation steps? (i.e. ES6 in editor to ES5 in browser, etc.). I understand that in these cases two-way syncing would not be possible, but I think this would be okay as long as it could be toggled by the user.

danhper commented 7 years ago

While I do not have much time to work on this project recently, I think it would be a good feature to have and would very gratefully accept PRs.