From: "Adam Sjøgren" <asjo@koldfront.dk>
To: ding@gnus.org
Subject: Re: Display markdown emails via markdown-mode
Date: Mon, 02 Dec 2024 23:21:16 +0100 [thread overview]
Message-ID: <87wmghoher.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <11609.6634463005$1732153019@news.gmane.org>
Husain writes:
> I have emails with Content-Type: text/markdown and I would like to view
> such emails in markdown mode somehow.
If you have markdown-mode installed, try this:
; Display text/markdown:
(require 'markdown-mode)
(defun mm-display-markdown (handle)
(mm-display-inline-fontify handle 'markdown-mode))
(add-to-list 'mm-inline-media-tests '("text/markdown" mm-display-markdown identity))
It's not perfect (I see some line-break problems at least), but it's a
start.
Best regards,
Adam
--
"Though I have not tested it, I trust it works." Adam Sjøgren
asjo@koldfront.dk
next prev parent reply other threads:[~2024-12-02 22:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <11609.6634463005$1732153019@news.gmane.org>
2024-11-22 8:06 ` Robert Pluim
2024-12-02 22:21 ` Adam Sjøgren [this message]
2024-11-21 1:35 Husain Alshehhi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wmghoher.fsf@tullinup.koldfront.dk \
--to=asjo@koldfront.dk \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).