Skip to content

named internal links? #55

benjythehunted opened this Issue Jun 6, 2012 · 5 comments

4 participants


I know we can internally link to a numbered slide (href="#/2"), but is there a way to give anchor names to slides, so that if I move a slide that is linked to, I won't have to also change the link?

Thanks so much for this, by the way...fantastic work.

hakimel commented Jun 7, 2012

This isn't current supported but would be possible to implement. Won't have time to get to this anytime soon but will keep the issue open for later.

dandv commented Aug 8, 2012

Felt the need for this features a few minutes into using Reveal.

@hakimel hakimel closed this in 141d694 Aug 21, 2012
hakimel commented Aug 21, 2012

This has been added now, instructions are here:

Essentially you just add an id to a section and link to it via

<a href="#my-slide-id">link</a>

this isn't an issue, per se, but a request for clarification in the documentation at:

I'm attempting to do the same thing as in the original issue above, for two reasons: the more slides I add, the more difficult it is to remember which reference in #/col/row format ; also, I find that I need to rearrange the slides to a more logical order. My problem is that, due to lack of knowledge of html5, my section ID's are not working, probably because I am not putting them in the right place. for example, in my initial slide, #/0/0, I put
<section id="home">
at the very top, and closed with
at the very bottom. Then, in another slide, I surrounded a link with
<a href="home">some link</a>
unfortunately, this placement of section id does not work. Please advise the proper way to do this.

Thank you

hakimel commented Nov 24, 2012

Hey, it looks like you're missing a # in your link, it should be:

<section id="#home">

@enovajuan enovajuan pushed a commit to enovajuan/reveal.js that referenced this issue Dec 2, 2014
@hakimel support for named links (closes #55) d545a3f
@nicolaiparlog nicolaiparlog pushed a commit to CodeFX-org/reveal.js that referenced this issue Feb 29, 2016
@obilodeau obilodeau revealjs: implicit listing blocks are now rendered as source code. Fi…
…xes #55

Explicit listing blocks will not be highlighted. I think this is what
most developers doing slides want.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.