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 MN66J+9dpF/WSAAA0tVLHw (envelope-from ) for ; Thu, 05 Nov 2020 20:17:51 +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 GMiDI+9dpF/rGQAAbx9fmQ (envelope-from ) for ; Thu, 05 Nov 2020 20:17:51 +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 16BC09401BD for ; Thu, 5 Nov 2020 20:17:50 +0000 (UTC) Received: from localhost ([::1]:60184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kalhc-0001xt-F9 for larch@yhetil.org; Thu, 05 Nov 2020 15:17:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka370-0005jk-FE for emacs-orgmode@gnu.org; Tue, 03 Nov 2020 15:41:02 -0500 Received: from smtp-in1.antik.sk ([88.212.10.33]:44241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ka36w-0008GE-LK for emacs-orgmode@gnu.org; Tue, 03 Nov 2020 15:41:01 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp-in1.antik.sk (Postfix) with ESMTP id 84D6B176A7D for ; Tue, 3 Nov 2020 21:40:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at smtp-in1.antik.sk Received: from smtp-in1.antik.sk ([127.0.0.1]) by localhost (smtp-in1.antik.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3tnKnxHSqyUw for ; Tue, 3 Nov 2020 21:40:41 +0100 (CET) Received: from mailserver.antik.sk (mailserver.antik.sk [88.212.10.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-in1.antik.sk (Postfix) with ESMTPS id ECDB61769EA for ; Tue, 3 Nov 2020 21:40:40 +0100 (CET) Received: (qmail 26017 invoked by uid 168); 3 Nov 2020 21:40:40 +0100 X-Qmail-Scanner-Diagnostics: from by mx3 (envelope-from , uid 168) with qmail-scanner-2.10st (clamdscan: 0.97.8/17391. mhr: 1.0. spamassassin: 3.3.2. perlscan: 2.10st. Clear:RC:1(127.0.0.1):. Processed in 0.013387 secs); 03 Nov 2020 20:40:40 -0000 Received: from 176-106-200-222.point.lviv.ua (HELO thinkpad) (nazar.stasiv@atk.sk@::ffff:176.106.200.222) by mailserver.antik.sk with SMTP; 3 Nov 2020 21:40:40 +0100 User-agent: mu4e 1.4.13; emacs 27.1 From: "nazar.stasiv@atk.sk" To: emacs-orgmode@gnu.org Subject: [PATCH] ox-md.el/preserve radio target hyperlink Message-ID: <87wnz2fa2h.fsf@atk.sk> Date: Tue, 03 Nov 2020 22:40:38 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=88.212.10.33; envelope-from=nazar.stasiv@atk.sk; helo=smtp-in1.antik.sk X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/03 15:40:42 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 05 Nov 2020 15:17:26 -0500 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: 2.49 X-TUID: G2L8cUIgS2o2 --=-=-= Content-Type: text/plain exporting to markdown looses radio target hyperlinks. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-ox-md.el-preserve-radio-target-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/preserve radio target 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 --=-=-=--