emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: Custom id taken into account with html, but not with markdo


From: Nicolas Goaziou
Subject: Re: [O] Bug: Custom id taken into account with html, but not with markdown, exports [8.3.1 (8.3.1-123-g823cad-elpa @ /home/bitouze/.emacs.d/elpa/org-20150914/)]
Date: Sun, 20 Sep 2015 23:01:06 +0200

Hello,

address@hidden (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]