Expand/Collapse section headers in source view is not working when using ::: panel-tabset

Open
#151 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
frontend

Research direction

Reproduce the issue in Quarto source view using the panel-tabset examples in the report, comparing headings placed before and after blank code chunks. Inspect the source-view section-folding behavior around ::: panel-tabset; done means every applicable heading has a correct expand/collapse option without inserting workaround chunks.

Written by the indexing model from the issue text.

Description

When editing a quarto document in source view with ::: panel-tabset sections, the ability to expand / collapse section headers (e.g., # Level 1 header, ## level 2 header) gets all messed up. Strangely, I can fix the problem if I insert blank code chunks immediately after either the start of a tabbed section:

::: panel-tabset

Level 2 header (will NOT have option to expand/collapse)


Another Level 2 (WILL have option to expand/collapse because of code chunk is above)


:::

Level 1 header (will NOT have option to expand/collapse)

::: panel-tabset


Level 2 header (will have option to expand/collapse)

:::


Level 1 header (will have option to expand/collapse)

Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quarto-dev/quarto

All issues in quarto-dev/quarto

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.