Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

named internal links? #55

Closed
benjythehunted opened this issue Jun 6, 2012 · 6 comments
Closed

named internal links? #55

benjythehunted opened this issue Jun 6, 2012 · 6 comments
Labels

Comments

@benjythehunted
Copy link

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
Copy link
Owner

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
Copy link
Contributor

dandv commented Aug 8, 2012

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

@hakimel
Copy link
Owner

hakimel commented Aug 21, 2012

This has been added now, instructions are here: https://github.com/hakimel/reveal.js#internal-links

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

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

@WTFologist
Copy link

this isn't an issue, per se, but a request for clarification in the documentation at:
https://github.com/hakimel/reveal.js#internal-links

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

at the very top, and closed with
at the very bottom. Then, in another slide, I surrounded a link with some link unfortunately, this placement of section id does not work. Please advise the proper way to do this.

Thank you

@hakimel
Copy link
Owner

hakimel commented Nov 24, 2012

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

<section id="#home">

enovajuan pushed a commit to enovajuan/reveal.js that referenced this issue Dec 2, 2014
nipafx pushed a commit to nipafx/reveal.js that referenced this issue Feb 29, 2016
 hakimel#55

Explicit listing blocks will not be highlighted. I think this is what
most developers doing slides want.
nipafx pushed a commit to nipafx/reveal.js that referenced this issue Feb 29, 2016
example for 'hide title' option
@mrmanc
Copy link

mrmanc commented Sep 17, 2020

This is awesome.

Is there any way to use this feature to link to a specific slide when you are using Markdown to author your slides? I tried adding things like <!-- .slide: id="some-name" --> but I couldn’t see it appear on the rendered section element in the DOM. Apologies if I’m being naive!

My solution in the meantime is to take advantage of the fact that each heading is given a lower-kebab-case id which I can link to, but this is a little more fragile as the link breaks when the heading changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants