Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Editor loses raw HTML code blocks #552

Open
gtritchie opened this issue Sep 25, 2024 · 0 comments · May be fixed by #553
Open

Visual Editor loses raw HTML code blocks #552

gtritchie opened this issue Sep 25, 2024 · 0 comments · May be fixed by #553

Comments

@gtritchie
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant