Allow HTML comments that are successfully parsed by Pandoc near code blocks

Open
#8,506 4 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Jan 30, 2024.

Assessment

This issue has not been assessed yet.

Description

enhancement
Bug description

With upgrading from 1.3 -> 1.4 (1.4.5.49), this error appeared, apparently from commented python blocks. Downgrading removed the error.

Steps to reproduce
---
title: "Bug"
format: html
---

<!--```{python}
```
```{python}
``` -->

```{python}

```

all three blocks are required

Expected behavior

Show one python block

Actual behavior

Error:

  Cell In[1], line 1
    ``` -->
    ^
SyntaxError: invalid syntax
Your environment

IDE: vscode
OS: ubuntu

Quarto check output
Quarto 1.4.549
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.11: OK
      Dart Sass version 1.69.5: OK
      Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.549
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      Chromium: 869685
      TinyTeX: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /usr/bin
      Version: 2021

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.12.0 (Conda)
      Path: /opt/miniconda/envs/paper/bin/python
      Jupyter: 5.7.1
      Kernels: python3

[✓] Checking Jupyter engine render....OK

R scripting front-end version 4.1.2 (2021-11-01)
[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

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.

More from quarto-dev/quarto-cli

All issues in quarto-dev/quarto-cli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.