[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] named anchors in HTML export
From: |
Nicolas Goaziou |
Subject: |
Re: [O] named anchors in HTML export |
Date: |
Sat, 19 Aug 2017 10:50:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
Adam Spiers <address@hidden> writes:
> I was also expecting to be able to use #+NAME: foo in front of a
> headline
You cannot use a NAME keyword to a headline (or an inlinetask).
CUSTOM_ID is morally equivalent, though.
> or even other elements like paragraphs, but this doesn't
> work. Is this a bug, or am I misreading the manual?
Currently, "ox-html" doesn't create an anchor for named paragraphs,
unless the paragraph consists of an image only.
However, you can put targets anywhere in a paragraph using <<target>>
syntax.
> Is there any way of creating an anchor for an arbitrary element,
> short of some ugly "+HTML" hack?
Note that internal references are... internal. You can use them across
documents only when using Org publishing mechanism. IOW, <<target>>
doesn't create <a id="target"></a> anchor, but something like <a
id="org1234567"></a>.
Regards,
--
Nicolas Goaziou