From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qKEAGo5DnWbhMQEA62LTzQ:P1 (envelope-from ) for ; Sun, 21 Jul 2024 17:21:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qKEAGo5DnWbhMQEA62LTzQ (envelope-from ) for ; Sun, 21 Jul 2024 19:21:18 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="DKz/wxr1"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721582478; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gyCFceke+Nm4NbpMJffcLUkwIBXUXDyt0mw8ppFGRaA=; b=EjWm60Apq0ok2UOJyjT8FNSHV3ZOWxXxAd5pLNptuF3+VK/JlRhLcm5fGGO2xXGq51U189 +iBLkcsoQinREWGojZsvqeaFoOxkeI9ADSnts5esA5XOOxmTFpUSidFcaaGNePOxgvSbBn t4AczDBD6xS/zbvAPEQFQLGk/isAehnbadmFJNzbfl9xixUhZmTlbHC4ziLpfafSbGNDHv kPVepWKmwb0HHqm9az9aeMBay3syOVsACdXvD3wxtWr6tM02z41a8cOzxAIYaR+kP7cSoB Wf0WwFFi6zH5SWp0qM2n1yvcM2EwAuHq48yI12gxv+qVPVknCXs9fB+otPu9nw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b="DKz/wxr1"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721582478; a=rsa-sha256; cv=none; b=YXfKMNRFfRsBxrCWbZln9tjig32PR+z7Gr5Rnp2QeHeF0gW5sA+pfbDaeki50di7WzbfW9 4wMkYli2C7o+gL403d5HasumiqXFFVhluFU6QFoVbYKDA4ec70D+ZTeFQ/WW9LaKp2pBVH p8PDxqUhdH8t+N8BJ/OtN32wwpj2vssbhy0Q/90xtZ4kGKTskhLl8Cacdtc58KXvMDAd2B WSx/QOKwgVTnAu3QKVjlrxtE3l6Yaeq4JXUyROwD4XHoZpJhs0aKDtdbfhTaA0GLuXHfcD FUUMyy6aW6mpX1+CDLKmAxxFvO2vPwrNWIHzoOacIj8oarUI/e4x8HWjXh0HBw== 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 CF8526BB1C for ; Sun, 21 Jul 2024 19:21:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVaE3-0007rx-SG; Sun, 21 Jul 2024 13:19:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVaE0-0007rf-3f for emacs-orgmode@gnu.org; Sun, 21 Jul 2024 13:19:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVaDz-0004vh-So for emacs-orgmode@gnu.org; Sun, 21 Jul 2024 13:19:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=To:Subject:Date:From:MIME-Version:in-reply-to: references; bh=gyCFceke+Nm4NbpMJffcLUkwIBXUXDyt0mw8ppFGRaA=; b=DKz/wxr1pLNtYh kBAR2ONOcv85CvVog/j5bEWpo5pGRjFhMIU8cldgM17uOnBpJkyFZWqbsCKM6uX+vzfvvDUE9S63x wb8APnsJtX+nO9fTVdjulbAsHRcKwuajeAMYcHjD4Mw4+ZZfKy5sGryhIIz9Ns0Q4axqUkuztq0yw rpDpa+FJsAuS1FfQaO+EL9z4/SiSTSngtA+UOV/rLtqhMyqyiGNLNUYcU68L8NDkf+lUqYxq3V8qK wjfYecfuUheNWACj70KiuqqbiK9jctlL0NEm4LA+mmU9zTzknIvcQNMeCpiLzhj6LjVW26WKFdc3Y fFcRuBP4Ju8/8334j86Q==; X-Gm-Message-State: AOJu0Ywho/7XPQwqvObLFeF4RQDW/k86h/+qeqm6cCEawQ8i/pyHjKsD Q3Ccdm5OyZt+9aszB+Wi5/+v/T/ZxwLX0JalWkgI0iWRlL3NUBOn69ItZhJ9m60umBpcecyXrLs UiCtCj+78DlrBvWU4B1k9FBHtfN4= X-Google-Smtp-Source: AGHT+IF2ywS6ogiYrsDUMdchuc4wrHQzWjApPdfynOlmd+vrsryHrT0GHK16Rn2Lwq9feKmtQJ+//N/l1/85BDMzMkg= X-Received: by 2002:a05:6808:13d0:b0:3d9:3f72:715c with SMTP id 5614622812f47-3dae606e42dmr3213492b6e.3.1721582394764; Sun, 21 Jul 2024 10:19:54 -0700 (PDT) MIME-Version: 1.0 From: Robert Weiner Date: Sun, 21 Jul 2024 13:19:29 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: How to fully control parsing of Org mode links during export To: emacs-org list Content-Type: multipart/alternative; boundary="000000000000177cc1061dc52373" X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: rswgnu@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -10.95 X-Migadu-Queue-Id: CF8526BB1C X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.95 X-TUID: KeXjhloSGOTy --000000000000177cc1061dc52373 Content-Type: text/plain; charset="UTF-8" Hi Org developers: I could really use some help from Org export experts. I have been trying to tweak export link parsing to do what I want without any success. Here is a summary of the issues and related questions I have. Usinf Org version "9.8-pre": 1. When exporting from an Org file to html, I want this [[Emacs#Section-One]] or [[file:Emacs::Section-One]] to be converted into this: Emacs#Section-One but instead Org export produces: Emacs#Section-One 2. When exporting from an Org file to html, I want this "[[One Testing]] Three" to be converted into this: "One Testing Three" but instead Org export produces: "One Testing Three" 3. When exporting from an Org file and I have defined the html export syntax for mytype: to html, I want this: [[mytype:MyLink]] [[Testing]] to be converted into this: MyLink Testing but instead Org export produces: MyLink.html">mytype:Testing My questions are: 1. How can I change `org-element-link-parser' in tandem with ox-html.el to output simple HTML links without any of the text within double brackets bleeding outside of the HTML link? 2. How can I get the exporter to run in my current Emacs process and spawn a new Emacs so that I can easily debug in-process? I think I have turned off the async export option but it still runs async and I can't step through the exporter functions. Thanks very much for any help. -- rsw --000000000000177cc1061dc52373 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Org developers:

I could really use some help fro= m Org export experts.=C2=A0 I have
been trying to tweak export link pars= ing to do what I want
without any success.=C2=A0 Here is a summary of th= e issues and related
questions I have.

Usinf Org version "9.= 8-pre":

1. When exporting from an Org file to html, I want this=
=C2=A0 =C2=A0 =C2=A0[[Emacs#Section-One]] or [[file:Emacs::Section-One]= ]
=C2=A0 =C2=A0to be converted into this:
=C2=A0 =C2=A0 =C2=A0<a h= ref=3D"Emacs.html">Emacs</a>#Section-One
=C2=A0 =C2= =A0but instead Org export produces:
=C2=A0 =C2=A0 =C2=A0<a href=3D&qu= ot;Emacs.html">Emacs</a>#Section-One

2. When exporting= from an Org file to html, I want this
=C2=A0 =C2=A0 =C2=A0"[[One T= esting]] Three"
=C2=A0 =C2=A0to be converted into this:
=C2=A0 = =C2=A0 =C2=A0"<a href=3D"One Testing.html">One Testing= </a> Three"
=C2=A0 =C2=A0but instead Org export produces:
= =C2=A0 =C2=A0 =C2=A0"<a href=3D"One.html">One</a>= ; <a href=3D"Testing.html">Testing</a> Three"
3. When exporting from an Org file and I have defined the html export<= br>=C2=A0 =C2=A0syntax for mytype: to html, I want this:
=C2=A0 =C2=A0 = =C2=A0[[mytype:MyLink]]
=C2=A0 =C2=A0 =C2=A0[[Testing]]
=C2=A0 =C2=A0= to be converted into this:
=C2=A0 =C2=A0 =C2=A0<a href=3D"MyLink= .html">MyLink</a>
=C2=A0 =C2=A0 =C2=A0<a href=3D"T= esting.html">Testing</a>
=C2=A0 =C2=A0but instead Org expo= rt produces:
=C2=A0 =C2=A0 =C2=A0<a href=3D"<a href=3D"M= yLink.html">MyLink</a>.html">mytype:<a href=3D&quo= t;Testing.html">Testing</a></a>

My questions are= :

1. How can I change `org-element-link-parser' in tandem with=C2=A0 =C2=A0ox-html.el to output simple HTML links without any of the te= xt
=C2=A0 =C2=A0within double brackets bleeding outside of the HTML link= ?

2. How can I get the exporter to run in my current Emacs process a= nd
=C2=A0 =C2=A0spawn a new Emacs so that I can easily debug in-process?= =C2=A0 I think I have
=C2=A0 =C2=A0turned off the async export option bu= t it still runs async and I can't
=C2=A0 =C2=A0step through the expo= rter functions.

Thanks very much for any help.

-- rsw
--000000000000177cc1061dc52373--