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

Tabset content is not listed in table of contents #2069

Closed
1 task done
nvelden opened this issue Mar 11, 2021 · 5 comments
Closed
1 task done

Tabset content is not listed in table of contents #2069

nvelden opened this issue Mar 11, 2021 · 5 comments

Comments

@nvelden
Copy link

nvelden commented Mar 11, 2021

If sections are placed in tabs they are not included in the table of contents:

# Section 1
## Section 1.1
### Section 1.1.1

Normal Section works fine:
sections

# Section 2 
## Section 2.1 { .tabset }
### Section 2.1.1
Tab 1
## {-}

Section in Tabs not listed
tabset_section

By filing an issue to this repo, I promise that

  • [x ] I have fully read the issue guide at https://yihui.org/issue/.
  • I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('rmarkdown'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/rmarkdown').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • [ x] I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

@nvelden
Copy link
Author

nvelden commented Mar 11, 2021

Oops. This was already mentioned in #2007 and #1336 . Any update on this?

@cderv
Copy link
Collaborator

cderv commented Mar 11, 2021

Yes it is still a feature request to work one. You linked the correct one. We did not take a look yet but will in the near feature.

I think minidown has it implemented : https://minidown.atusy.net/#tabset
right @atusy ?

Closing as a duplicate of the other.
Do not hesitate to share thoughts and contribute in open PR / issues.

Thanks!

@cderv cderv closed this as completed Mar 11, 2021
@cderv
Copy link
Collaborator

cderv commented Mar 11, 2021

Duplicate of #1336

@cderv cderv marked this as a duplicate of #1336 Mar 11, 2021
@atusy
Copy link
Collaborator

atusy commented Apr 3, 2021

@cderv @nvelden

Yes, I'd recommend https://github.com/atusy/minidown which support the feature in the development version.

---
output:
  minidown::mini_document:
    tabset: true
    toc: true
---

# foo {.tabset}

## DT

```{r}
DT::datatable(head(mtcars))
```

## plotly

```{r}
plotly::ggplotly(ggplot2::qplot(1, 1))
```

@github-actions
Copy link

github-actions bot commented Oct 5, 2021

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants