quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.62k stars 296 forks source link

Code Annotation and OJS does not work well together when evaluated cell #7609

Open cderv opened 8 months ago

cderv commented 8 months ago

I believe code annotation and OJS is more complex, because it seems OJS will output results under each line, with no possible grouping.

---
code-annotations: true
---

```{ojs}
1 + 1 // <1>
2 + 2
3 + 3 // <2>
  1. test
  2. test
1 + 1 # <1>
2 + 2
3 + 3 # <2>
  1. test
  2. test

image

but this is another issue because in this case the ordered List is not even processed.

Originally posted by @cderv in https://github.com/quarto-dev/quarto-cli/issues/7537#issuecomment-1814414780

cderv commented 8 months ago

Not even with eval: false it works because of the splitted code cells in output

---
code-annotations: true
---

```{ojs}
//| eval: false
1 + 1 // <1>
2 + 2
3 + 3 // <2>
  1. test
  2. test
1 + 1 # <1>
2 + 2
3 + 3 # <2>
  1. test
  2. test


![image](https://github.com/quarto-dev/quarto-cli/assets/6791940/b1d9798e-b5f5-4268-a816-ee13aab7277c)