Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert markdown for email #4

Open
piascikj opened this issue Feb 3, 2016 · 10 comments
Open

Convert markdown for email #4

piascikj opened this issue Feb 3, 2016 · 10 comments

Comments

@piascikj
Copy link

piascikj commented Feb 3, 2016

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
Copy link

👍

@danhper
Copy link
Owner

danhper commented Feb 3, 2016

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
Copy link

👍

2 similar comments
@orawalters
Copy link

👍

@lucasbento
Copy link

👍

@danhper danhper added in progress and removed ready labels Mar 9, 2016
@danhper
Copy link
Owner

danhper commented Mar 9, 2016

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
Copy link

zeke commented Mar 10, 2016

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

See http://markdown-here.com/

@danhper
Copy link
Owner

danhper commented Mar 10, 2016

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 😄

@Zerim
Copy link

Zerim commented Sep 21, 2017

@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
Copy link
Owner

danhper commented Sep 21, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants