Rise: internal links

Created on 1 Jun 2017  路  4Comments  路  Source: damianavila/RISE

I am having problems with internal links in reveal.js
In my Jupyter notebook i created a cell (slide) with <a id='installation'></a>
then in another cell (slide) with the TOC I wrote:
option 1
[1. Installation] (#installation)

option 2
<a href='#installation'>1. Installation </a>

Both options take me to the first cell(slide) and not to the one with the id = 'installation'
What might be going on? What is the proper way to use internal links in RISE?

Thanks,
Raul

Low Priority enhancement

Most helpful comment

Upvoting this... I also was hoping this _just_ works, but realized it did not (yet). Bump!

All 4 comments

Something like this should work:

<a href="#/2/2">Link</a>

For "named" references, we currently don't have a way to add an specific id in the <section> element, so this is why you are probably seeing issues with this approach.

Thanks Damian!
Yes that works but only inside the slideshow.
I was looking for way to use the same link inside the notebook and in the slideshow
Now I have two ToC: one that uses "named" references and that works fine in the jupyter notebook (and that I skip when creating the slideshow), and another one based on numbers that works fine when I use the RISE/reveal.js slideshow mode.

Do you have any suggestion to create a "universal" link (a ToC in my case)?

Thanks,
Raul

Do you have any suggestion to create a "universal" link (a ToC in my case)?

Need to think about this, probably not something super easy to do because the notebook and slideshow structures are different. But as I said, I need to think a little bit more on this.

Upvoting this... I also was hoping this _just_ works, but realized it did not (yet). Bump!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

damianavila picture damianavila  路  3Comments

IanSudbery picture IanSudbery  路  5Comments

jbednar picture jbednar  路  6Comments

AllenDowney picture AllenDowney  路  4Comments

Alalalalaki picture Alalalalaki  路  4Comments