-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11011 from quarto-dev/bugfix/8179
layout - do not merge code blocks with different classes
- Loading branch information
Showing
3 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
title: "Block layout" | ||
format: html | ||
engine: knitr | ||
keep-md: true | ||
_quarto: | ||
tests: | ||
html: | ||
ensureHtmlElements: | ||
- | ||
- "pre.r" | ||
- "pre.python" | ||
- [] | ||
--- | ||
|
||
|
||
|
||
|
||
# Code chunk block layout | ||
|
||
:::: {layout="[48,-4,48]"} | ||
|
||
::: {} | ||
|
||
### R | ||
|
||
|
||
|
||
::: {.cell} | ||
|
||
```{.r .cell-code} | ||
sqrt(2) | ||
``` | ||
|
||
::: {.cell-output .cell-output-stdout} | ||
|
||
``` | ||
[1] 1.414214 | ||
``` | ||
|
||
|
||
::: | ||
::: | ||
|
||
|
||
|
||
::: | ||
|
||
::: {} | ||
|
||
### Python | ||
|
||
|
||
|
||
::: {.cell} | ||
|
||
```{.python .cell-code} | ||
import math | ||
math.sqrt(2) | ||
``` | ||
|
||
::: {.cell-output .cell-output-stdout} | ||
|
||
``` | ||
1.4142135623730951 | ||
``` | ||
|
||
|
||
::: | ||
::: | ||
|
||
|
||
|
||
::: | ||
|
||
:::: |