Hyperlinking within an HTML Presentation using R Markdown

前端 未结 2 740
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-21 05:35

I hope I\'ve tagged this correctly - I\'d like to create an HTML presentation using Markdown in R Studio. What I\'d like to do is to create hyperlinks that will jump to a specif

2条回答
  •  伪装坚强ぢ
    2021-01-21 05:53

    It's possible, although the result isn't perfect:

    [Slide 4](#4)
    

    ioslides opens links in new windows by default, so the links won't work in the RStudio preview, and will create new browser tabs at runtime.

    It's much easier if you don't care about markdown purity--a little HTML and JavaScript go a long way:

    Slide 4
    

提交回复
热议问题