emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carlos Pita <carlosjosepita@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Setting html special blocks id=name is problematic
Date: Fri, 29 Mar 2019 01:42:17 -0300	[thread overview]
Message-ID: <CAELgYheMUo9fZBm2gpv0EBJSvD=y0vF-zWwMfe95J62p1NJDOg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

Hi all,

the html exporter produces a div with id = name when the #+name property is
set for a special block. Since names are search targets they could be used
in links of the form [[name]]. Now this link will fail in the browser
because it will search for the internally generated id returned by
org-export-get-reference and there is no html element with this id in the
exported output. The problem I see here is that org searches for the link
target using the name property but produces html that searches for this
same target using a non-exported id instead. Given that there already is an
#+attr_html keyword to set the id property if so desired, wouldn't it be a
better idea to set the id property to the internally generated identifier
so links are able to resolve both in emacs and in the browser the same way?
I could write a simple patch but I would like to know your opinion on this
first.

Best regards
--
Carlos

[-- Attachment #2: Type: text/html, Size: 1037 bytes --]

                 reply	other threads:[~2019-03-29  4:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAELgYheMUo9fZBm2gpv0EBJSvD=y0vF-zWwMfe95J62p1NJDOg@mail.gmail.com' \
    --to=carlosjosepita@gmail.com \
    --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).