Skip to content

Visual editor breaks GitHub style callouts in .md files #834

@Aariq

Description

@Aariq

Bug description

GitHub flavored markdown uses callouts like this:

>[!TIP]
>Callout text

If you have one of these in a .md document and switch to the visual editor it changes it to:

> \[!T
> IP\] Callout text

Steps to reproduce

In RStudio or Positron, create a .md document, paste in:

>[!TIP]
>Callout text

Then switch to visual mode and back to source mode.

Actual behavior

No response

Expected behavior

I'm not sure exactly why it recognizes that spot as a line break, but if it's not a bug per se, it would be nice to have a way to exempt things like this from auto-formatting by the visual editor.

Your environment

  • IDE: RStudio Version 2025.09.1+401 (2025.09.1+401)
  • OS: macOS 15.6.1 (24G90)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions