rmarkdown icon indicating copy to clipboard operation
rmarkdown copied to clipboard

Add tabsets in ToC (closes #1336)

Open atusy opened this issue 5 years ago • 2 comments

This PR aims to solve #1336. Currently, I find two problems that needs someone's help

  • [ ] Support navigation to inactive tabs
    • Otherwise, users have to click the ToC twice. Evaluating anchor.click() twice does not help.
  • [ ] Support navigation to tabs with duplicated names
Example Rmd
---
title: "ToC and Tabset"
output:
  html_document:
    toc: true
    toc_float: true
---

# A {.tabset}


## tab A-1

content A-1

## tab A-2

content A-2

# B {.tabset}

## tab B-1

content B-1

## tab B-2

content B-2

# B2 {.tabset}

## tab B-1

content B-1

## tab B-2

content B-2

atusy avatar Jan 14 '21 13:01 atusy

This is something that is causing us a lot of grief right now, can I help with getting this in?

romanzenka avatar Aug 10 '22 16:08 romanzenka

@romanzenka If you have any ideas to improve, feel free to take over my PR! I currently have no ideas to improve.

atusy avatar Aug 14 '22 00:08 atusy