From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from mx1.math.uh.edu (mx1.math.uh.edu [129.7.128.32]) by inbox.vuxu.org (Postfix) with ESMTP id 08DE42BF72 for ; Mon, 2 Dec 2024 23:21:58 +0100 (CET) Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1tIEng-00000007l75-2U0l for ml@inbox.vuxu.org; Mon, 02 Dec 2024 16:21:55 -0600 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.97.1) (envelope-from ) id 1tIEne-00000007Swx-3eDK for ml@inbox.vuxu.org; Mon, 02 Dec 2024 16:21:50 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.97.1) (envelope-from ) id 1tIEnd-00000007Swr-22bm for ding@lists.math.uh.edu; Mon, 02 Dec 2024 16:21:49 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1tIEnU-00000006gMK-342I for ding@lists.math.uh.edu; Mon, 02 Dec 2024 16:21:49 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Sender:Date:Subject:From:To:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7PBCzRw6Oq9E7x4LBVQJVJYk5XLG3v613cOFZgvkcmo=; b=CM2QbIq/6JJzqH5k0/NSzBpjJh M7K6/CF9KDRZ2x1w5ceZncJc1HquEP0pVVXRTeC/VHDyjI/jzBKmU/6AuWkJkAQTW5mApYXjqi0+s NXbAEnhT1Yka5EYB5rYta6KX39r9z0897U9b6NG+AtujI6m2vjGbn8HxeUb2kpPFWe7g=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tIEnF-0005n3-Mj for ding@gnus.org; Mon, 02 Dec 2024 23:21:36 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1tIEnE-000463-3A for ding@gnus.org; Mon, 02 Dec 2024 23:21:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Subject: Re: Display markdown emails via markdown-mode Date: Mon, 02 Dec 2024 23:21:16 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87wmghoher.fsf@tullinup.koldfront.dk> References: <11609.6634463005$1732153019@news.gmane.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:QIdOPPCGMwwaZ+EmJlthplBb2+E= OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Now-Playing: Tricky Kid, Pre-Millennium Tension (Tricky) X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk 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