Coder Social home page Coder Social logo

named internal links? about reveal.js HOT 6 CLOSED

hakimel avatar hakimel commented on July 30, 2024
named internal links?

from reveal.js.

Comments (6)

hakimel avatar hakimel commented on July 30, 2024 4

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>

from reveal.js.

hakimel avatar hakimel commented on July 30, 2024

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.

from reveal.js.

dandv avatar dandv commented on July 30, 2024

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

from reveal.js.

WTFologist avatar WTFologist commented on July 30, 2024

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

from reveal.js.

hakimel avatar hakimel commented on July 30, 2024

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

<section id="#home">

from reveal.js.

mrmanc avatar mrmanc commented on July 30, 2024

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.

from reveal.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.