Le 20/09/15 à 23h01, Nicolas Goaziou <m...@nicolasgoaziou.fr> a écrit :
> Hello, 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. Thanks so much! BTW, do you agree with the other issue I reported: #+begin_src org - A [[/rootsite/somepage/][(relative) page]]. - A [[/rootsite/somepage][(relative) page]]. #+end_src is exported as: #+begin_src markdown - A [(relative) page](file:///rootsite/somepage/). - A [(relative) page](file:///rootsite/somepage). #+end_src whereas, IMHO, the expected behavior should be: #+begin_src markdown - A [(relative) page](/rootsite/somepage/). - A [(relative) page](/rootsite/somepage). #+end_src Anyway, thanks again! :) Regards. -- Denis