Open piascikj opened 8 years ago
:+1:
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!
:+1:
:+1:
:+1:
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.
I've always wanted to write my emails in markdown inside gmail.
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:
@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.
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.
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.