rendering and generating text/markdown parts
Dylan Baker
dylan at pnwbakers.com
Fri Aug 11 15:02:44 PDT 2017
One of the alot devs here,
Natively no. I have a fairly minor patch to alot that would make it work if the
type was text/markdown instead of text/plain.
I have another patch that makes this render correctly as markdown, but it breaks
lots of other text/plain emails that use characters in a way that they look like
markdown to cmark, but aren't actually markdown.
I think if we're going to have a message format we should use text/markdown or
text/commonmark, or text/x-(markdown|commonmark) rather than text/plain as the
format. While it's safe to read markdown as plain text (it was originally used
that way anyway), it's not safe to assume that all text is valid markdown.
elinks with "-dump-color-mode 1" did a pretty good job of formatting the html that
came out of cmark. I've attached that if anyone wants to see it.
Dylan
Quoting Daniel Kahn Gillmor (2017-08-10 21:41:52)
> Using `Content-Type: text/markdown`
> -----------------------------------
>
> [Over on LWN, some discussion came up about rendering and generating
> text/markdown variants of e-mails](https://lwn.net/Articles/730277/)
>
> This is similar to (but maybe simpler than) [a proposal that was
> discussed on the alot bug tracker earlier this
> year](https://github.com/pazz/alot/issues/1051).
>
> I thought i'd drop this mail as a marker for the start of a longer
> discussion if anyone wants to try to take it further.
>
> Next Steps
> ----------
>
> I think this mail is (hopefully) actually composed correctly as
> text/markdown.
>
> Does anyone's MUA render it properly? Anyone want to post screenshots
> or other renderings?
>
> Anyone have suggestions about message composition in markdown?
>
> --dkg
>
-------------- next part --------------
[0;30m[0;37mUsing Content-Type: text/markdown
[0;37m
[0;37m [0;34m[1]Over on LWN, some discussion came up about rendering and generating
[0;34m[0;37m [0;34mtext/markdown variants of e-mails
[0;34m
[0;34m[0;37m This is similar to (but maybe simpler than) [0;34m[2]a proposal that was
[0;34m[0;37m [0;34mdiscussed on the alot bug tracker earlier this year[0;37m.
[0;37m
[0;37m I thought i'd drop this mail as a marker for the start of a longer
[0;37m discussion if anyone wants to try to take it further.
[0;37m
[0;37mNext Steps
[0;37m
[0;37m I think this mail is (hopefully) actually composed correctly as
[0;37m text/markdown.
[0;37m
[0;37m Does anyone's MUA render it properly? Anyone want to post screenshots or
[0;37m other renderings?
[0;37m
[0;37m Anyone have suggestions about message composition in markdown?
[0;37m
[0;37m --dkg
References
Visible links
1. https://lwn.net/Articles/730277/
2. https://github.com/pazz/alot/issues/1051
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20170811/fd58f70d/attachment.sig>
More information about the notmuch
mailing list