From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Sébastien Brisard" <sebastien.brisard@m4x.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: [ox-html] Why are dedicated targets automatically renamed?
Date: Sun, 31 Jan 2016 22:52:20 +0100 [thread overview]
Message-ID: <87h9ht1kob.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAGRH7HpkwPPVjAp45wAu-uTKpn2LRNT3=n_YOqTZx=Cwmv=Lcw@mail.gmail.com> ("Sébastien Brisard"'s message of "Thu, 21 Jan 2016 07:45:23 +0100")
Hello,
Sébastien Brisard <sebastien.brisard@m4x.org> writes:
> I have noticed that org-mode now renames dedicated targets. More
> precisely, the following org file
>
> ===== beginning of a.org =====
> - <<item1>>Item 1
> - <<item2>>Item 2
> ===== end of a.org =====
>
> gets exported to html as
>
> ===== beginning of a.html (extract) =====
> <body>
> <div id="content">
> <ul class="org-ul">
> <li><a id="orgtarget1"></a>Item 1</li>
> <li><a id="orgtarget2"></a>Item 2</li>
> </ul>
> </div>
> <div id="postamble" class="status">
> <p class="author">Author: Sébastien Brisard</p>
> <p class="date">Created: 2016-01-21 Thu 07:38</p>
> <p class="creator"><a
> href="http://www.gnu.org/software/emacs/">Emacs</a> 24.5.1 (<a
> href="http://orgmode.org">Org</a> mode 8.3.3)</p>
> <p class="validation"><a
> href="http://validator.w3.org/check?uri=referer">Validate</a></p>
> </div>
> </body>
> ===== end of a.html =====
>
> Notice that the targets were renamed item1 -> orgtarget1 and item2 ->
> orgtarget2. Why is that?
It allows using any kind of character for a target without knowing
HTML's forbidden ones.
> With org-publish, it messes up links across files.
What do you mean? <<...>> are internal targets, and by no mean meant to
link across documents.
> Is there an option that allows to preserve the user's target name on
> export?
No, there isn't. "ox-latex" provides one, but not "ox-html". Note that
custom ID are always preserved, tho.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2016-01-31 21:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-21 6:45 [ox-html] Why are dedicated targets automatically renamed? Sébastien Brisard
2016-01-31 21:52 ` Nicolas Goaziou [this message]
2016-02-01 19:59 ` Sébastien Brisard
2016-02-02 16:38 ` Nicolas Goaziou
2016-02-03 7:27 ` Sébastien Brisard
-- strict thread matches above, loose matches on Subject: below --
2016-10-18 15:46 D. C. Toedt
2016-10-20 16:51 ` Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h9ht1kob.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=sebastien.brisard@m4x.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.