-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Bug description
When using the bracket colorization hack from #670 to highlight fenced divs, code chunk decorations ("Run Cell | Run Next Cell | Run Above") disappear after a sequence of nested/multiple divs.
Steps to reproduce
In the following document, working-chunk-1 and working-chunk-2 show proper decorations, but the broken chunk loses all decorations:
---
title: "Test Code Decorations"
format: html
---
:::: {.callout-note}
```{r}
#| label: working-chunk-1
summary(mtcars)
```
:::
:::: {.callout-note}
```{r}
#| label: working-chunk-2
head(mtcars)
```
:::
:::: {.callout-note}
:::
:::: {.callout-note}
:::: {.callout-note}
:::
:::: {.callout-note}
:::
:::
:::: {.callout-note}
:::: {.callout-note}
:::
:::: {.callout-note}
:::
:::
:::: {.callout-note}
:::
:::: {.callout-note}
:::: {.callout-note}
:::
:::
:::: {.callout-note}
:::: {.callout-note}
:::
:::: {.callout-note}
:::
:::: {.callout-note}
:::
:::: {.callout-note}
:::
:::: {.callout-note}
:::
:::
:::: {.callout-note}
:::
```{r}
#| label: broken
nrow(mtcars)
```
```{r}
#| label: also-broken
nrow(mtcars)
```
Actual behavior
After the sequence of nested/empty divs, the broken chunk shows no decorations. In real documents with many nested callout blocks, this progressively affects all subsequent chunks.
Expected behavior
All R chunks should display "Run Cell | Run Next Cell | Run Above" decorations regardless of preceding div structure.
Your environment
Positron Version: 2025.12.0 (user setup) build 105
Code - OSS Version: 1.105.0
Commit: 98537e9935afc48311e32033c6518a3c89829789
Date: 2025-11-20T07:45:30.453Z
Electron: 37.6.0
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100