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

Add tabsets in ToC (closes #1336) #2007

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

atusy
Copy link
Collaborator

@atusy atusy commented Jan 14, 2021

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 atusy marked this pull request as draft January 14, 2021 13:54
@romanzenka
Copy link

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

@atusy
Copy link
Collaborator Author

atusy commented Aug 14, 2022

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

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

Successfully merging this pull request may close these issues.

2 participants