Skip to content

Bad code-annotations behaviour when no "list" annotation is provided #6313

@mcanouil

Description

@mcanouil

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.

Metadata

Metadata

Labels

bugSomething isn't workingtriaged-toIssues that were not self-assigned, signals that an issue was assigned to someone.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions