atomic-chrome icon indicating copy to clipboard operation
atomic-chrome copied to clipboard

Convert markdown for email

Open piascikj opened this issue 8 years ago • 10 comments

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.

piascikj avatar Feb 03 '16 14:02 piascikj

:+1:

steelbrain avatar Feb 03 '16 14:02 steelbrain

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!

danhper avatar Feb 03 '16 14:02 danhper

:+1:

joseluisq avatar Feb 10 '16 03:02 joseluisq

:+1:

orawalters avatar Feb 10 '16 15:02 orawalters

:+1:

lucasbento avatar Mar 09 '16 14:03 lucasbento

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.

danhper avatar Mar 09 '16 22:03 danhper

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

See http://markdown-here.com/

zeke avatar Mar 10 '16 02:03 zeke

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:

danhper avatar Mar 10 '16 02:03 danhper

@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.

Zerim avatar Sep 21 '17 00:09 Zerim

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.

danhper avatar Sep 21 '17 01:09 danhper