-
DescriptionI see discussions on commenting here and here but I haven't seen anything the outlines this specific issue. Apologies if I have missed it. Consider this quarto doc called ---
format:
html:
self-contained: true
---
```{r}
head(iris)
```
{{< include child-doc.qmd >}} and this child doc called ```{r}
head(quakes)
``` Rendering with Great. That works fine. But I am seeing some (what I think to be) strange behaviour with multiline line comments. For example, a multiline comment for the R chunk removes it from the output but the chunk is still evaluated (checked with ---
format:
html:
self-contained: true
---
<!--
```{r}
head(iris)
```
-->
{{< include child-doc.qmd >}} The same scenario happens when I multiline comment out the ---
format:
html:
self-contained: true
---
```{r}
head(iris)
```
<!--
{{< include child-doc.qmd >}}
--> However if one simply does a single line comment the chunks are not evaluated (again checked with ---
format:
html:
self-contained: true
---
```{r}
head(iris)
```
<!-- {{< include child-doc.qmd >}} --> Is this a known pattern? I don't see anything mentioned in the commenting section so I am raising this here. If this is an unavoidable issue, for now would you consider a PR to add some text around multiline comments in that section? Tested on
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
HTML comments are not supported in Quarto (or Pandoc). |
Beta Was this translation helpful? Give feedback.
Note the Important callout in our documentation: