Earl Chase <[email protected]> writes:

>> #+HTML_LINK_HOME: https://www.example.com
>>
>> [[https://www.example.com/page/subpage/foo.html]] can be automatically
>> exported to <a href="/page/subpage/foo.html"> ... </a>
>>
>> That way, we will even keep the actual Org links inside the buffer working.
>>
> If I understand you correctly, you are basically saying that ox-md
> should just recognize `org-html-link-home'? ox-md is derived from
> ox-html so I think that is already the case. So really all I would
> need to do is add a variable like `org-html-home/up-format' to ox-md
> and then add special handling in the case `org-html-link-home' or
> `org-html-link-up' is defined, similar to what `org-html-template'
> does?

Yes. Just like `org-publish-file-relative-name' understands relative file
paths. However, I am still not 100% sure about the use case scenario. Is
it about file links? Is it about https links?

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to