emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* HTML Export of Links to Source Blocks seems broken
@ 2016-06-16 10:18 timor
  2016-06-17  7:51 ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: timor @ 2016-06-16 10:18 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

considering the following example:

--------------------------------------
#+NAME: test_fun
#+BEGIN_SRC js
function test_fun() {

}
#+END_SRC

Link to [[test_fun]]

#+NAME: another_test_fun
#+BEGIN_SRC js
function another_test_fun() {

}
#+END_SRC

Link to [[another_test_fun]]
-----------------------------------------

the exported html code creates to <a> tags, like this:

------------------------------------
Link to <a href="#orgsrcblock1">1</a>
------------------------------------

and this:

------------------------------------
Link to <a href="#orgsrcblock2">1</a>
------------------------------------

Is that behavior desired?

I would expect the link text to actually spell "test_fun" and
"another_test_fun" in this case, since those are the names of the
source blocks.

As a workaround, is there anywhere in the exporter that I could hook
into to change the link text myself?

(org version 8.3.4)

Regads,
timor

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-06-20 20:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-16 10:18 HTML Export of Links to Source Blocks seems broken timor
2016-06-17  7:51 ` Nicolas Goaziou
2016-06-17 10:46   ` timor
2016-06-17 11:56     ` Nicolas Goaziou
2016-06-20  8:18       ` timor
2016-06-20 12:52         ` Nicolas Goaziou
2016-06-20 13:07           ` timor
2016-06-20 20:23             ` Nicolas Goaziou

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