Re: Display markdown emails via markdown-mode
Adam Sjøgren <[email protected]> Mon, 02 Dec 2024 23:21:16 +0100
| Newsgroups | gmane.emacs.gnus.general |
|---|---|
| Organization | koldfront - analysis & revolution, Copenhagen, Denmark |
| Message-ID | <[email protected]> |
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
[email protected]