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: Denis Bitouzé
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: Mon, 21 Sep 2015 07:34:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Le 20/09/15 à 23h01, Nicolas Goaziou <address@hidden> a écrit :

> Hello,

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.

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



reply via email to

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