Skip to content

Collapse arrow for section headers no longer visible after inserting div #14642

Closed

Description

@DanOvando

System details

RStudio Edition : <!-- Desktop  -->
RStudio Version : 2024.04.0+735 (2024.04.0+735)
OS Version      :  macOS 14.4.1 (23E224)
R Version       :  4.4.0

Steps to reproduce the problem

  1. Open RStudio

  2. Open a .qmd file

  3. Add section header (e.g. # Results )

  4. Add a div after the section header, followed by another section header

# Results

::: {#refs}
:::

# Figures

Describe the problem in detail

Code folding arrows disappear from section headers following inclusing of a div in quarto document. See screenshot below; code folding arrow present for # References, but not for # Figures. If div is removed, code folding arrow returns to # Figures

Screenshot 2024-05-02 at 9 30 21 AM

Describe the behavior you expected

Code folding arrows should still be present in section headers of .qmd files opened in the RStudio IDE following inclusion of a div.

  • [X ] I have read the guide for submitting good bug reports.
  • [ X] I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • [ X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added
    new
    on May 2, 2024
  2. ronblum commented on May 2, 2024

    @ronblum
    Contributor

    @DanOvando Thank you for raising the issue! I can also reproduce this in RStudio Desktop 2023.03.2+454 on Windows 11 using R 4.3.3. We'll review this issue as we continue development of RStudio.

  3. added and removed
    new
    on May 2, 2024
  4. added this to the Product Backlog milestone on May 6, 2024
  5. gtritchie commented on May 9, 2024

    @gtritchie
    Member

    This also happens on RStudio 2023.12.1+402 and 2024.09.1+494.

    The arrow for the second header is missing, but still there for the first header:

    Image

  6. self-assigned this
    on Sep 12, 2024
  7. kevinushey commented on Sep 12, 2024

    @kevinushey
    Collaborator

    This seems to be working for me in the latest daily builds (available at https://dailies.rstudio.com/rstudio/kousa-dogwood/).

    Screenshot 2024-09-12 at 10 10 39 AM

    Is anyone else able to test + confirm?

    Sample document:

    ---
    title: Hello World
    ---
    
    # Results
    
    ::: {#refs}
    :::
    
    # Figures
    
    ::: {#figures}
    :::
    
    # Supplement
    
  8. gtritchie commented on Sep 17, 2024

    @gtritchie
    Member

    I repro'd on 2024.04.0+735, 2024.04.1+748, and 2024.04.2+764, but it did not repro on 2024.09.0-375 (RC for cranberry-hibsicus) or a recent daily build of the next release (2024.10.0+182).

    Closing as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions