Re: How to fully control parsing of Org mode links during export

2024-08-18 Thread Ihor Radchenko
Robert Weiner writes: > Thank you for the pointers on this, Ihor. That led me down a much better > path that worked. In the end, I just had the export function for my > specific link type and had to add a before advice on > org-element--generate-copy-script since it lacks a hook at its end. I

Re: How to fully control parsing of Org mode links during export

2024-08-15 Thread Robert Weiner
Thank you for the pointers on this, Ihor. That led me down a much better path that worked. In the end, I just had the export function for my specific link type and had to add a before advice on org-element--generate-copy-script since it lacks a hook at its end. I would suggest adding one as this

Re: How to fully control parsing of Org mode links during export

2024-07-22 Thread Ihor Radchenko
Robert Weiner writes: > 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. You generally should not need to modify the _parser_. What yo

Re: How to fully control parsing of Org mode links during export

2024-07-21 Thread Robert Weiner
Sorry, I mistyped the first example in my message, it should read: 1. When exporting from an Org file to html, I want this [[Emacs#Section-One]] to be converted into this: Emacs#Section-One but instead Org export produces: Emacs#Section-One -- rsw

Re: How to fully control parsing of Org mode links during export

2024-07-21 Thread Robert Weiner
Thanks, so much, Orm. I’ll give this a try. It does indicate that the expirt code and parser could use a simpler setup for debugging. — rsw On Sun, Jul 21, 2024 at 2:20 PM Orm Finnendahl < orm.finnend...@selma.hfmdk-frankfurt.de> wrote: > Hi, > > this is how I currently do the debugging of htm

Re: How to fully control parsing of Org mode links during export

2024-07-21 Thread Orm Finnendahl
Hi, this is how I currently do the debugging of html-export (there may be more elegant ways, but it works well for me): - Copy (defun org-export-as ...) from ox.el into a local elisp buffer of your liking (any buffer with the name .el should do). - In that function add the line (setq info-deb

How to fully control parsing of Org mode links during export

2024-07-21 Thread Robert Weiner
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,