Skip to content

Commit c76c0a3

Browse files
authored
Merge pull request #13624 from quarto-dev/fix/fatal-error-manuscript
2 parents 86209ae + 2a92052 commit c76c0a3

File tree

5 files changed

+27
-2
lines changed

5 files changed

+27
-2
lines changed

news/changelog-1.9.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ All changes included in 1.9:
66
- ([#13441](https://github.com/quarto-dev/quarto-cli/pull/13441)): Catch `undefined` exceptions in Pandoc failure to avoid spurious error message.
77
- ([#13046](https://github.com/quarto-dev/quarto-cli/issues/13046)): Use new url for multiplex socket.io server <https://multiplex.up.railway.app/> as default for `format: revealjs` and `revealjs.multiplex: true`.
88
- ([#13506](https://github.com/quarto-dev/quarto-cli/issues/13506)): Fix navbar active state detection when sidebar has no logo configured. Prevents empty logo links from interfering with navigation highlighting.
9+
- ([#13616](https://github.com/quarto-dev/quarto-cli/issues/13616)): Fix fatal error when rendering manuscript projects with custom blocks like ConditionalBlock.
910
- ([#13625](https://github.com/quarto-dev/quarto-cli/issues/13625)): Fix Windows file locking error (os error 32) when rendering with `--output-dir` flag. Context cleanup now happens before removing the temporary `.quarto` directory, ensuring file handles are properly closed.
1011
- ([#13633](https://github.com/quarto-dev/quarto-cli/issues/13633)): Fix detection and auto-installation of babel language packages from newer error format that doesn't explicitly mention `.ldf` filename.
1112

src/resources/filters/layout/manuscript.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ function manuscript()
5757
-- If this is a notebook embed cell, 'lift' the contents of any child divs
5858
-- up (unroll their contents), this will help us avoid
5959
-- labeling divs marked as `cells` more than once
60-
local blocks = pandoc.List()
60+
local blocks = pandoc.Blocks({})
6161
for _, childBlock in ipairs(divEl.content) do
6262
if is_regular_node(childBlock, "Div") then
63-
tappend(blocks, childBlock.content)
63+
blocks:extend(childBlock.content)
6464
else
6565
blocks:insert(childBlock)
6666
end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.quarto/
2+
**/*.quarto_ipynb
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: "Conditional Block in manuscript article"
3+
_quarto:
4+
tests:
5+
pdf:
6+
noErrors: true
7+
---
8+
9+
::: {.content-visible when-format="pdf"}
10+
11+
Something
12+
13+
:::
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
project:
2+
type: manuscript
3+
4+
manuscript:
5+
article: 13616.qmd
6+
7+
format:
8+
pdf:
9+
pdf-engine: xelatex

0 commit comments

Comments
 (0)