On Thu, 23 Oct 2014, Luca Barbato wrote:
On 23/10/14 13:02, Jan Kundrát wrote:
On Thursday, 23 October 2014 12:03:20 CEST, Luca Barbato wrote:
While discussing about commonmark adoption one of the point is how to
foster usage.
How hard would be having a commonmark (markdown) mode that gets
translated in html in trojita?
(Replying to the Trojita ML as agreed. Folks, please keep Luca in Cc,
he's not subscribed here.)
Thanks a lot!
In general, I do not think that this is a good idea. E-mail is extremely
conservative, and there's a ton of broken tooling out here. There's no
chance to send e-mails in markdown only, nobody would be able to read
them (well, Trojita would show its source, but we haven't exactly
achieved world domination just yet).
The idea is to let people write in markdown and get the multipart html
generated from there.
This would be handy. showing the markdown as the plain text gives text-only
people at least some indication of the formatting (even if they know nothing
about markdown it's still useful)
converting this to html and sending it as the html portion is useful for those
who don't want to do the mouse manipulation to try and do the formatting.
I'm not sure how large a population that is though ;-)
So I think extending the text/html to text/html/auto where auto looks at the
text and converts markdown to html and creates an html version.
In many ways, what would be even nicer was if the html mode could create a
markdown text version to send so that the formatting isn't all lost.
David Lang