Skip to content

Switching from Source to Visual Editor. #15640

Closed

Description

@volumen25

Type: Performance Issue

  1. Create a new Quarto .qmd document containing a table with a cross-reference identifier and LaTeX escaped percent sign.

  2. Open the document in Positron 2026.08.1 and switch from Source to Visual Editor.

  3. Switch back to Source.

  4. Observe that the Visual Editor has modified the source:

    • {#tbl-test} is removed from the table caption.
    • 37.5\% is changed to 37.5%.
    • Markdown syntax such as # Test and table pipe characters is rewritten/escaped.
  5. The table cross-reference consequently no longer appears in Insert → Cross Reference → Table.

Version: Positron 2026.08.1+2 (48dc4ce, 2026-08-09T13:35:16-06:00)
Code - OSS version: VS Code 1.124.0
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs AMD Ryzen AI 7 PRO 350 w/ Radeon 860M (16 x 1996)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 27.65GB (11.18GB free)
Process Argv
Screen Reader no
VM 0%
Workspace Info
|  Window (● ve-test.qmd - handbook - Positron)
|    Folder (handbook): 137 files
|      File types: qmd(30) png(30) js(12) json(8) docx(8) md(8) css(6) html(4)
|                  pptx(3) gitignore(1) other(27)
|      Conf files: settings.json(1);
Extensions (15)
Name Identifier Author Version
Ruff charliermarsh.ruff charliermarsh 2026.72.0
markdownlint davidanson.vscode-markdownlint DavidAnson 0.62.1
GitHub Pull Requests github.vscode-pull-request-github GitHub 0.156.0
Pyrefly - Python Language Tooling meta.pyrefly meta 1.2.0
Python Debugger ms-python.debugpy ms-python 2026.6.0
Jupyter ms-toolsai.jupyter ms-toolsai 2025.9.1
Jupyter Keymap ms-toolsai.jupyter-keymap ms-toolsai 1.1.2
Jupyter Notebook Renderers ms-toolsai.jupyter-renderers ms-toolsai 1.3.0
Jupyter Cell Tags ms-toolsai.vscode-jupyter-cell-tags ms-toolsai 0.1.9
Jupyter Slide Show ms-toolsai.vscode-jupyter-slideshow ms-toolsai 0.1.6
Air - R Language Support posit.air-vscode Posit 0.28.0
Posit Assistant posit.assistant posit 1.1.0
Posit Publisher posit.publisher posit 2.10.0
Shiny posit.shiny Posit 1.4.2
Quarto quarto.quarto quarto 1.135.0

Activity

  1. volumen25 commented on Aug 20, 2026

    @volumen25
    Author

    Positron 2026.08.1 Visual Editor modifies standard Quarto Markdown when switching between Source and Visual modes, including removal of table cross-reference identifiers and LaTeX escape characters.

  2. isabelizimm commented on Aug 20, 2026

    @isabelizimm
    Contributor

    Hi there! This round-trip logic actually lives in the quarto extension, and it looks like folks have also experienced this behavior and logged quarto-dev/quarto#1047 as a result.

    Are you able to check out that issue, and see if you think it's the same problem you're seeing? If so, it would be super helpful if you add any other context for your use case in that thread.

  3. added
    area: quarto
    on Aug 20, 2026
  4. juliasilge commented on Aug 20, 2026

    @juliasilge
    Member

    I believe we're also tracking this in #13204, and there is a workaround in there using divs, if you want to check that out!

  5. added
    info needed
    on Aug 20, 2026
  6. volumen25 commented on Aug 21, 2026

    @volumen25
    Author

    The same issue on macOS:

    Positron Version: 2026.08.1 build 2
    Code - OSS Version: 1.124.0
    Commit: 48dc4cee686939f35fe4a714d34375f67fd62082
    Date: 2026-08-09T13:35:16-06:00
    Electron: 42.2.0
    Chromium: 148.0.7778.97
    Node.js: 24.15.0
    V8: 14.8.178.14-electron.0
    OS: Darwin arm64 25.6.0
    

    also

    pandoc --version
    pandoc 3.10.2
    Features: +server +lua
    Scripting engine: Lua 5.4
    

    Test file before switching to the Visual Editor.

    ---
    title: Visual Editor Test
    format: html
    ---
    
    # Test
    
    Here is a table reference: @tbl-test.
    
    | Variable | Symbol |
    |----------|--------|
    | Pressure | P      |
    | Flow     | F      |
    
    : Test table {#tbl-test}
    
    The percentage is 37.5\%.
    

    Test file after switching to the Visual Editor and back to the Source Mode. During the switch, it asks to save the changes although there haven’t been any manual changes, but clearly the file has changed inadvertently.

    ---
    title: Visual Editor Test
    format: html
    ---
    
    # Test
    
    Here is a table reference: @tbl-test.
    
    | Variable | Symbol |
    |----------|--------|
    | Pressure | P      |
    | Flow     | F      |
    
    : Test table
    
    The percentage is 37.5%.
    
  7. isabelizimm commented on Aug 21, 2026

    @isabelizimm
    Contributor

    Thank you so much for adding info to those issues! Since they cover the same problems you're seeing (breaking Latex and cross references), I'm going to go ahead and close this out as a duplicate. If you see any new ways the Visual Editor is altering documents, please go ahead and open up a new issue.

    Thanks again!

  8. locked as resolved and limited conversation to collaborators on Sep 5, 2026
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

    area: quartoinfo needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions