quarto-dev / quarto-dev/quarto-cli

Issue when toggling between text editor and visual editor

Open
#12,018 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

I am encountering a problem when toggling between the text editor and visual editor where the reference to my image is getting reformatted causing the image to not display correctly. What is happening is r inline code appears to be getting reformatted from (r here('figs/time_series.png')) to (%60r%20here('figs/time_series.png')%60) which then can't be found when I render the report unless I change it back. Regardless of what I have set as the default version when opening a .qmd it is being opened in visual editor which is causing the code change.

Version 1.118.0

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce the issue by toggling a .qmd document between the text and visual editors with the inline R image reference shown in the report. Compare the reference before and after toggling, and verify whether the configured default editor is respected; done means the image reference remains valid and the selected editor opens by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.