Hello, dbito...@wanadoo.fr (Denis Bitouzé) writes:
> When the following org mode file: > > #+begin_src org > * Heading with custom id > :PROPERTIES: > :CUSTOM_ID: custom-id-heading > :END: > > See [[#custom-id-heading][heading with custom id]]. > #+end_src > > is exported to html, the org mode :CUSTOM_ID: "custom-id-heading" is an > anchor (as html id attribute): > > #+begin_src html > [...] > <h2>Table of Contents</h2> > <div id="text-table-of-contents"> > <ul> > <li><a href="#custom-id-heading">1. Heading with custom id</a></li> > </ul> > </div> > [...] > <h2 id="custom-id-heading"><a id="orgheadline1"></a><span > class="section-number-2">1</span> Heading with custom id</h2> > [...] > See <a href="#custom-id-heading">heading with custom id</a>. > [...] > #+end_src > > but, when exported to markdown, the org mode :CUSTOM_ID: > "custom-id-heading" is not an anchor (and the link > href="#custom-id-heading" points nowhere): > > #+begin_src markdown > [...] > <div id="table-of-contents"> > <h2>Table of Contents</h2> > <div id="text-table-of-contents"> > <ul> > <li><a href="#custom-id-heading">1. Heading with custom id</a></li> > </ul> > </div> > </div> > > # Heading with custom id<a id="orgheadline1"></a> > > See heading with custom id (See section 1). > #+end_src Both issues fixed. Thank you. Regards, -- Nicolas Goaziou