Bug description
While checking #6297 I noticed a bad behaviour of the code annotation feature when the annotation comment is added to the code cell without the associated list annotation.
CC. @cderv
Steps to reproduce
---
format: html
---
```{r}
stats::rnorm(2) # <1>
```
Expected behaviour
If no list is provided just below the code cell, annotation should not exist and the code cell should behave as if code-annotations: false.
See https://github.com/mcanouil/quarto--code-link--code-annotations.
Actual behavior
The code cell (source and output) is completely removed.
Bug description
While checking #6297 I noticed a bad behaviour of the code annotation feature when the annotation comment is added to the code cell without the associated list annotation.
CC. @cderv
Steps to reproduce
Expected behaviour
If no list is provided just below the code cell, annotation should not exist and the code cell should behave as if
code-annotations: false.See https://github.com/mcanouil/quarto--code-link--code-annotations.
Actual behavior
The code cell (source and output) is completely removed.