On 10/10/2026 5:02 pm, Ihor Radchenko wrote:
Max Nikulin writes:

3rd party ox packages for markdown flavors might support
CUSTOM_ID/anchors for more precise links. For ox-md.el it looks like a
limitation of the format.
[...]
I would say that we should probably include commonmark or something
similar and equally common into the core at some point, but that's
beyond the scope of this feature request.

I've realized that ox-md adds raw HTML anchors <a id="..."></a>, but only for referenced headings. Behavior was changed by

    4cb6abe3b 2017-03-10 18:52:06 +0100 Nicolas Goaziou
    ox-md: Fix internal links

almost certainly in response to

stefano franchi. How to get "clean" markdown export. Thu, 9 Mar 2017 11:44:01 -0600
<https://list.orgmode.org/CAJODLwbj1nWL-Fp-r0bN=kng5mdmzaocmd7muo_p9njvh4o...@mail.gmail.com/>

So ::# link search strings may be converted to # fragment links during export. Perhaps a user option should be added to allow control whether <a id="..."> anchors added for all CUSTOM_ID properties or just for referenced headings.

At first I tried to export to .md with table of contents disabled, so there were no anchors. I have not tested behavior of publishing.

While looking into this, I have noticed that raw HTML links <a href="..."> are used instead of native MarkDown []() ones for radio targets. The reason is not clear for me. It was added in

    3916a5740 2020-11-03 22:24:03 +0200 Turbo Cafe
    ox-md.el: Preserve radio target hyperlink


Reply via email to