quarto-dev / quarto-dev/quarto
Visual editor breaks GitHub style callouts in .md files
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
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)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the round trip in a .md document using the GitHub callout example, switching from source mode to the visual editor and back. Start by locating the visual editor's Markdown formatting path; done means the callout syntax remains unchanged after the round trip, or an explicit exemption is provided.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown, typescript
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100