From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gA7QMh9Nol+vSAAA0tVLHw (envelope-from ) for ; Wed, 04 Nov 2020 06:41:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +DSLLh9Nol8nIwAAbx9fmQ (envelope-from ) for ; Wed, 04 Nov 2020 06:41:35 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 241D49404CE for ; Wed, 4 Nov 2020 06:41:35 +0000 (UTC) Received: from localhost ([::1]:43616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaCU8-0000Va-KI for larch@yhetil.org; Wed, 04 Nov 2020 01:41:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaCTZ-0000VQ-DX for emacs-orgmode@gnu.org; Wed, 04 Nov 2020 01:40:57 -0500 Received: from nl101-2.vfemail.net ([149.210.219.31]:33260 helo=freequeue.vfemail.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaCTX-0002Ds-7C for emacs-orgmode@gnu.org; Wed, 04 Nov 2020 01:40:57 -0500 Received: (qmail 9484 invoked from network); 4 Nov 2020 06:40:49 -0000 Received: from nl101-2.vfemail.net (bmE=@149.210.219.31) by freequeue.vfemail.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 4 Nov 2020 06:40:49 -0000 Received: (qmail 9372 invoked from network); 4 Nov 2020 06:40:32 -0000 Received: by simscan 1.4.0 ppid: 9364, pid: 9370, t: 0.0731s scanners:none Received: from unknown (HELO www192.vfemail.net) (dHVyYm8uY2FmZUBjbG92ZXJtYWlsLm5ldA==@192.168.1.192) by nl101.vfemail.net with ESMTPA; 4 Nov 2020 06:40:32 -0000 User-agent: mu4e 1.4.13; emacs 27.1 From: "turbo.cafe@clovermail.net" To: emacs-orgmode@gnu.org Subject: [PATCH] ox-md.el/markdown-hyperlink Message-ID: <874km51v6o.fsf@clovermail.net> Date: Wed, 04 Nov 2020 08:40:31 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=149.210.219.31; envelope-from=turbo.cafe@clovermail.net; helo=freequeue.vfemail.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/04 01:40:50 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 1.49 X-TUID: CPX1C7skbdEP --=-=-= Content-Type: text/plain exporting to markdown loses radio target hyperlinks. ------------------------------------------------- This free account was provided by VFEmail.net - report spam to abuse@vfemail.net ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options! --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-ox-md.el-markdown-hyperlink.patch >From bbe8ef631467f9f5f097412a946a82d38e96235c Mon Sep 17 00:00:00 2001 From: "turbo.cafe@clovermail.net" Date: Tue, 3 Nov 2020 22:24:03 +0200 Subject: [PATCH] ox-md.el/markdown-hyperlink * ox-md.el (org-md-link): format markdown hyperlink from org radio target --- lisp/ox-md.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 1d20c04f4..a63815e43 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -543,7 +543,13 @@ INFO is a plist holding contextual information. See ((string= type "coderef") (format (org-export-get-coderef-format path desc) (org-export-resolve-coderef path info))) - ((equal type "radio") desc) + ((string= type "radio") + (let ((destination (org-export-resolve-radio-link link info))) + (if (not destination) desc + (format "%s" + (org-export-get-reference destination info) + "" + desc)))) (t (if (not desc) (format "<%s>" path) (format "[%s](%s)" desc path)))))) -- 2.29.1 --=-=-=--