-
Notifications
You must be signed in to change notification settings - Fork 383
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
In 1.7, missing newlines before code cells produce a warning about :::
. This is the correct behavior, code cells should be prefaced by a newline. However, since the warning may be unexpected for documents that didn't previously generate a warning, we might consider tweaking the language to help people find the problem.
Example
Consider the following document:
---
title: "Untitled"
format: html
---
This does it:
```{r}
1 + 1
```
In 1.6, it is rendered without warning. Intermediate markdown:
---
title: "Untitled"
format: html
keep-md: true
---
This does it:
::: {.cell}
```{.r .cell-code}
1 + 1
```
::: {.cell-output .cell-output-stdout}
```
[1] 2
```
:::
:::
In 1.7, the missing newline before the code chunk, propagates to the markdown:
---
title: "Untitled"
format: html
keep-md: true
---
This does it:
::: {.cell}
```{.r .cell-code}
1 + 1
```
::: {.cell-output .cell-output-stdout}
```
[1] 2
```
:::
:::
An results in the warning:
WARNING (/Users/charlottewickham/Documents/posit/quarto-cli/src/resources/filters/./normalize/astpipeline.lua:341)
The following string was found in the document: :::
This usually indicates a problem with a fenced div in the document. Please check the document for errors.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request