From: "Denis Bitouzé" <dbitouze-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: 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 [thread overview]
Message-ID: <m38u80z667.fsf@example.com> (raw)
In-Reply-To: <87k2rkajql.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org> (Nicolas Goaziou's message of "Sun, 20 Sep 2015 23:01:06 +0200")
Le 20/09/15 à 23h01, Nicolas Goaziou <mail-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org> a écrit :
> Hello,
Hello,
> dbitouze-39ZsbGIQGT5GWvitb5QawA@public.gmane.org (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
next prev parent reply other threads:[~2015-09-21 5:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-20 19:00 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/)] Denis Bitouzé
2015-09-20 21:01 ` Nicolas Goaziou
[not found] ` <87k2rkajql.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org>
2015-09-21 5:34 ` Denis Bitouzé [this message]
2015-09-21 6:30 ` Nicolas Goaziou
[not found] ` <87a8sgmgie.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org>
2015-09-21 16:38 ` Denis Bitouzé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m38u80z667.fsf@example.com \
--to=dbitouze-39zsbgiqgt5gwvitb5qawa@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).