emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Setting html special blocks id=name is problematic
@ 2019-03-29  4:42 Carlos Pita
  0 siblings, 0 replies; only message in thread
From: Carlos Pita @ 2019-03-29  4:42 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-29  4:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-29  4:42 Setting html special blocks id=name is problematic Carlos Pita

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).