emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Adam Spiers <orgmode@adamspiers.org>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: named anchors in HTML export
Date: Fri, 18 Aug 2017 22:43:08 +0100	[thread overview]
Message-ID: <CAOkDyE9y6cpq04f3rWO_3joEtp9A68-y+B=_tVNi-r02uBpE=g@mail.gmail.com> (raw)

Hi there,

I'm using org2blog and trying to mark certain parts of a blog post
with a named anchor for permanent linking. However, org2blog relies on
Org's native HTML export, so really this post is just questions about
HTML Export.

I've managed to get sections anchored using a CUSTOM_ID property.
However based on

    http://orgmode.org/manual/Internal-links.html#Internal-links

I was also expecting to be able to use #+NAME: foo in front of a
headline or even other elements like paragraphs, but this doesn't
work. Is this a bug, or am I misreading the manual?

 Is there any way of creating an anchor for an arbitrary element,
short of some ugly "+HTML" hack?

By the way, this question is also being tracked here:

    https://github.com/org2blog/org2blog/issues/239

Thanks!
Adam

             reply	other threads:[~2017-08-18 21:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-18 21:43 Adam Spiers [this message]
2017-08-19  8:50 ` named anchors in HTML export Nicolas Goaziou
2017-08-19 22:43   ` Adam Spiers

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='CAOkDyE9y6cpq04f3rWO_3joEtp9A68-y+B=_tVNi-r02uBpE=g@mail.gmail.com' \
    --to=orgmode@adamspiers.org \
    --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).