Skip to content

Commit f3f100e

Browse files
committed
knitr now expects the correct comment syntax for the language to correctly parse cell options
backport of #12450
1 parent e33895d commit f3f100e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/docs/smoke-all/2023/10/29/6985-b.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ code-fold: true
88
```
99

1010
```{js}
11-
#| file: script.js
11+
//| file: script.js
1212
```

tests/docs/smoke-all/knitr/eng-sql.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ dbWriteTable(con, "mtcars", mtcars)
1515
```
1616

1717
```{sql}
18-
#| column: margin
19-
#| connection: con
18+
--| column: margin
19+
--| connection: con
2020
2121
select cyl from mtcars limit 5
2222
```

tests/docs/test-knitr-sql.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ORDER BY manufacturer, displ DESC
2828
New way to write this option
2929

3030
```{sql}
31-
#| connection: con
31+
--| connection: con
3232
SELECT manufacturer, displ, cty
3333
FROM mpg
3434
ORDER BY manufacturer, displ DESC

0 commit comments

Comments
 (0)