From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OFL8JA9fCmC+CgAA0tVLHw (envelope-from ) for ; Fri, 22 Jan 2021 05:13: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 mp2 with LMTPS id eMxoIA9fCmDDeQAAB5/wlQ (envelope-from ) for ; Fri, 22 Jan 2021 05:13: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 161C3940481 for ; Fri, 22 Jan 2021 05:13:51 +0000 (UTC) Received: from localhost ([::1]:54736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2ola-0004wo-32 for larch@yhetil.org; Fri, 22 Jan 2021 00:13:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2olC-0004wd-U8 for emacs-orgmode@gnu.org; Fri, 22 Jan 2021 00:13:26 -0500 Received: from out0.migadu.com ([2001:41d0:2:267::]:2918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2ol7-0005Ah-ST for emacs-orgmode@gnu.org; Fri, 22 Jan 2021 00:13:25 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1611292397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qVLYfHAeNXjlBb3HJA9XJ0mW5IGCsNaBHNACQIVoePQ=; b=WXNNAI4f+jtXCFNCfD/bnQDwdiNQcAZ9dYMUgPg28Fuq6s4B2zzDc6SbN8poprY4+aOUrW EJmni31Ak4M5QJZ8Hqi1XuAkZeF2hjR1aZhUqR+gyeins82OJcOypkW+zgMQvzB3UfWyf2 XcT/XipvRAI11tptLz+WQPx4lccqBLZhEFs5J9Z+8oyP7sc5EJGQ54zntWaJzW678/U9qs RimDj6TDAalcAdHZcDf8F3VvH6KB/rAIu90cN9sDeNbQlNW29iw0cFozkbB+0gxuHNklp7 +erhHaS6+59ji1qSAYPa0XyobWrpmcIN79OGgbYXLwtBl8ZooTNpnXRt0eQo8w== From: Kyle Meyer To: "turbo.cafe@clovermail.net" Subject: Re: [PATCH] ox-md.el/markdown-hyperlink In-Reply-To: <874km51v6o.fsf@clovermail.net> References: <874km51v6o.fsf@clovermail.net> X-Woof-Patch: applied Date: Fri, 22 Jan 2021 00:13:14 -0500 Message-ID: <875z3ptuz9.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=2001:41d0:2:267::; envelope-from=kyle@kyleam.com; helo=out0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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: , Cc: emacs-orgmode@gnu.org, TEC Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=WXNNAI4f; 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-Migadu-Queue-Id: 161C3940481 X-Spam-Score: -2.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: /CstQfkDjfI7 [ Sorry for the delay. ] turbo.cafe@clovermail.net writes: > exporting to markdown loses radio target hyperlinks. Thanks for the patch, and thanks TEC for testing it out. Pushed (3916a5740). > Subject: [PATCH] ox-md.el/markdown-hyperlink > > * ox-md.el (org-md-link): format markdown hyperlink from org radio target The subject you posted in the other thread at was a bit more descriptive, so I've used that and made a few other tweaks to the commit message when applying. > 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) > + "" I dropped this second argument, which is unnecessary (and I suspect a leftover from copying and adjusting what's in ox-html). > + desc))))