From: Svjatoslav Agejenko <svjatoslav@svjatoslav.eu>
To: emacs-orgmode@gnu.org
Subject: Infojs deeply nested UUID based internal links do not work
Date: Wed, 28 Jan 2015 22:41:27 +0200 [thread overview]
Message-ID: <1422477687.3318.8.camel@svjatoslav.eu> (raw)
[-- Attachment #1: Type: text/plain, Size: 525 bytes --]
Hello!
I did HTML export with INFOJS enabled.
Document has deeply nested nodes.
When I link to relatively major nodes, generated URL looks like:
javascript:org_html_manager.go(3)
And clicking it works well. Corresponding node will open.
But when I link to even deeper node, URL now becomes like that:
.../bug%20demo.html#sec-1-1-1-1-2
And such links do not work with INFOJS.
I attached minimal example org file and generated HTML.
Is it known limitation of INFOJS ?
Any known workarounds ?
Best regards,
Svjatoslav
[-- Attachment #2: bug demo.html --]
[-- Type: text/html, Size: 12538 bytes --]
[-- Attachment #3: bug demo.org --]
[-- Type: text/plain, Size: 3241 bytes --]
#+INFOJS_OPT: view:t toc:t ltoc:t
- link to [[id:06704d05-0da1-410e-86ab-bc49d65b2b1a][sixth]] element (broken)
- link to [[id:70bde97d-07c7-4c84-a337-c86b52f94ff3][third]] element
The culprit seems to be the URL like this. It does not work with
InfoJS:
: .../bug%20demo.html#sec-1-1-1-1-2
While URL's like this work
: javascript:org_html_manager.go(3)
* first
Sed sit amet massa ipsum. Sed scelerisque, mauris eu porttitor auctor,
metus justo vulputate nibh, sit amet pharetra lorem leo in
ipsum. Phasellus sed dui eu eros consequat efficitur. Phasellus a
felis leo. Pellentesque suscipit diam ac condimentum finibus. Sed
ornare eu nibh sed semper. Proin et dui tortor. Phasellus consectetur
volutpat bibendum. Pellentesque in eros massa. Aliquam et leo
lectus. Donec lobortis, dui ac laoreet dapibus, massa velit accumsan
purus, sit amet elementum augue nulla sit amet ante. Sed a egestas
urna. Aenean ac aliquam dui, at volutpat erat.
** second
*** third
:PROPERTIES:
:ID: 70bde97d-07c7-4c84-a337-c86b52f94ff3
:END:
**** fourth
***** sixth - random stuff
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec at
blandit neque. Nulla a leo auctor, malesuada sapien in, cursus
massa. Maecenas a nibh augue. Nulla facilisi. Donec ultrices
sollicitudin dui ac elementum. Praesent semper varius bibendum. Cum
sociis natoque penatibus et magnis dis parturient montes, nascetur
ridiculus mus. Fusce hendrerit ultrices urna, a tincidunt enim finibus
sed. Integer posuere leo quis urna vulputate dapibus.
***** sixth - target
:PROPERTIES:
:ID: 06704d05-0da1-410e-86ab-bc49d65b2b1a
:END:
Praesent at tellus tincidunt, dapibus purus vitae, molestie
orci. Curabitur consectetur, felis eu condimentum consectetur, nunc
risus interdum orci, id eleifend arcu nunc sed ex. Donec cursus
laoreet lectus vitae consequat. Donec eleifend eu eros sodales
scelerisque. Sed et faucibus nisi. Donec nec quam sit amet odio
fermentum efficitur. Nullam gravida at nunc sed vestibulum. Mauris
consectetur orci ac quam tristique sollicitudin. Mauris eget augue ut
nibh venenatis fringilla et sit amet dui. Donec id felis eget tellus
eleifend vulputate dignissim ac sem. Nullam iaculis enim ut orci
lacinia pharetra. Etiam tristique ac lectus vel semper. Aliquam
iaculis, metus molestie tincidunt bibendum, orci tortor condimentum
lectus, ut venenatis lorem eros et eros. Suspendisse molestie, erat
non auctor convallis, nunc turpis accumsan urna, in fermentum dolor
urna ac ante. Nam scelerisque, lectus nec efficitur viverra, dolor
nibh tempor lorem, ac pellentesque risus diam eget nibh.
***** sixth - random stuff 2
Vivamus leo nulla, accumsan ut finibus sit amet, porttitor at
neque. Maecenas in pellentesque massa. Quisque pulvinar facilisis
purus, at mattis augue ultricies a. Quisque fringilla quam a mi
tempor, vel hendrerit quam facilisis. Vivamus vitae velit elementum,
congue est ut, sagittis mi. Phasellus rutrum lorem tortor, sit amet
tincidunt turpis tincidunt sed. Aliquam at quam quis turpis consequat
luctus. Vivamus vestibulum urna est, et dignissim dui viverra
nec. Duis posuere mattis vehicula. Nunc ac volutpat nisl, sit amet
condimentum mi. Praesent malesuada odio in velit bibendum, vitae
ullamcorper ex aliquam.
reply other threads:[~2015-01-28 20:41 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=1422477687.3318.8.camel@svjatoslav.eu \
--to=svjatoslav@svjatoslav.eu \
--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).