Skip to content

Visual Editor loses raw HTML code blocks #552

Closed
@gtritchie

Description

@gtritchie

NOTE: This issue is due to a pandoc change, and also impacts the RStudio IDE (rstudio/rstudio#15189). I am working on a fix for both the IDE and the VSCode extension.

Steps to reproduce the problem

  • Using extension version 1.115.0 in VSCode 1.93.1
  • Create a new Quarto document, edit in non-visual mode, add following:
---
title: "Raw HTML Block Issue"
format: html
---

Some text.

```{=html}
<p>Put <b>HTML</b> <i>here</i>.</p>
```

This is <b>inline HTML</b>.

Save the file, then Edit in Visual Mode. It looks ok:

vscode-visual

Now switch back to source (non-visual) mode.

Describe the problem in detail

The code block is gone, all that is left is the content, but not the surrounding backticks, etc.

---
title: "Raw HTML Block Issue"
format: html
---

Some text.

<p>Put <b>HTML</b> <i>here</i>.</p>

This is <b>inline HTML</b>.

Describe the behavior you expected

Raw HTML blocks should not be removed by the Visual Editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions