Skip to content

Switching to visual mode removes markdown table attributes #18170

Closed as duplicate

Description

@stefanocoretta

System details

RStudio Edition : Desktop
RStudio Version : 2026.06.0+242
OS Version      : macOS 26.5.1 (25F80)
R Version       : 4.6.0

Steps to reproduce the problem

  • Create a new Quarto document.
  • In source mode, add a markdown table with caption.
  • Add a #tbl- id after the caption for example `{#tbl-mytable}
  • Switch to Visual mode. The table attribute is removed.

Describe the problem in detail

See above.

Describe the behavior you expected

The attribute should not be removed.

  • I have read the guide for submitting good bug reports.
  • 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.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added
    visual markdown
    on Jul 8, 2026
  2. added theissue type on Jul 8, 2026
  3. gtritchie commented on Jul 8, 2026

    @gtritchie
    Member

    Confirmed this is a regression that started in 2026.04.0+526, it worked in 2026.01.2+418.

    I was using this table at the end of a .qmd:

    | First Name | Last Name | Email                      |
    |------------|-----------|----------------------------|
    | Alice      | Nguyen    | alice.nguyen\@example.com  |
    | Marcus     | Bell      | marcus.bell\@example.com   |
    | Priya      | Patel     | priya.patel\@example.com   |
    | Diego      | Ramirez   | diego.ramirez\@example.com |
    | Hana       | Kim       | hana.kim\@example.com      |
    
    : My Table {#tbl-mytable}
  4. added this to the 2026.08 milestone on Jul 8, 2026
  5. self-assigned this
    on Jul 9, 2026
  6. gtritchie commented on Jul 9, 2026

    @gtritchie
    Member

    Note, this is an issue on the Visual Editor/Panmirror side, per quarto-dev/quarto#977.

  7. removed their assignment
    on Jul 9, 2026
  8. gtritchie commented on Jul 9, 2026

    @gtritchie
    Member

    Duplicate of #17890

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugduplicateescapeeexternalregressionsupportvisual markdown

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions