emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Denis Bitouzé" <dbitouze@wanadoo.fr>
Cc: emacs-orgmode@gnu.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: Sun, 20 Sep 2015 23:01:06 +0200	[thread overview]
Message-ID: <87k2rkajql.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m37fnkhq69.fsf@drums.chezmoi.fr> ("Denis \=\?utf-8\?Q\?Bitouz\?\= \=\?utf-8\?Q\?\=C3\=A9\=22's\?\= message of "Sun, 20 Sep 2015 21:00:14 +0200")

Hello,

dbitouze@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

  reply	other threads:[~2015-09-20 20:59 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 [this message]
     [not found]   ` <87k2rkajql.fsf-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org>
2015-09-21  5:34     ` Denis Bitouzé
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=87k2rkajql.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=dbitouze@wanadoo.fr \
    --cc=emacs-orgmode@gnu.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).