emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to fully control parsing of Org mode links during export
@ 2024-07-21 17:19 Robert Weiner
  2024-07-21 18:19 ` Orm Finnendahl
  2024-07-22 13:54 ` Ihor Radchenko
  0 siblings, 2 replies; 7+ messages in thread
From: Robert Weiner @ 2024-07-21 17:19 UTC (permalink / raw)
  To: emacs-org list

[-- Attachment #1: Type: text/plain, Size: 1721 bytes --]

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:
     <a href="Emacs.html">Emacs</a>#Section-One
   but instead Org export produces:
     <a href="Emacs.html">Emacs</a>#Section-One

2. When exporting from an Org file to html, I want this
     "[[One Testing]] Three"
   to be converted into this:
     "<a href="One Testing.html">One Testing</a> Three"
   but instead Org export produces:
     "<a href="One.html">One</a> <a href="Testing.html">Testing</a> 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:
     <a href="MyLink.html">MyLink</a>
     <a href="Testing.html">Testing</a>
   but instead Org export produces:
     <a href="<a href="MyLink.html">MyLink</a>.html">mytype:<a
href="Testing.html">Testing</a></a>

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

[-- Attachment #2: Type: text/html, Size: 2432 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-08-18 13:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-21 17:19 How to fully control parsing of Org mode links during export Robert Weiner
2024-07-21 18:19 ` Orm Finnendahl
2024-07-22  1:16   ` Robert Weiner
2024-07-22  4:01     ` Robert Weiner
2024-07-22 13:54 ` Ihor Radchenko
2024-08-16  5:26   ` Robert Weiner
2024-08-18 13:13     ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).