Hi,
I currently have some custom org links in my documents successfully translated by a
(org-link-set-parameters "custom" :export 'fn) function when exporting with pandoc.
Recently I tried to put one in a headline, but nothing happened.
Consider this exemple org file:
#+title: Demo
* This [[id:mytarget][won't work]]
This [[id:mytarget2][will work]]
Actually, if I remove the link in the paragraph, and tell edebug to eval handle-id-links, I found that this function will never be called during export.
Instead, it will be handled by org-org-headline in ox-org.el, finally calling org-element-link-interpreter which doesn’t do anything with the custom link.
I found a workaround by bypassing org-element-link-interpreter like this, but maybe this is something ox-pandoc could handle?
Hi, I currently have some custom org links in my documents successfully translated by a
(org-link-set-parameters "custom" :export 'fn)
function when exporting with pandoc. Recently I tried to put one in a headline, but nothing happened.Consider this exemple org file:
With this configuration:
When exporting to html with pandoc for example, this comes out:
Actually, if I remove the link in the paragraph, and tell
edebug
to evalhandle-id-links
, I found that this function will never be called during export. Instead, it will be handled byorg-org-headline
inox-org.el
, finally callingorg-element-link-interpreter
which doesn’t do anything with the custom link.I found a workaround by bypassing
org-element-link-interpreter
like this, but maybe this is something ox-pandoc could handle?