quarto-dev / quarto-dev/quarto-cli

Diagram and Figure block with list break manuscript

Open
#11,883 10 comments 0 reactions 1 assignee View on GitHub

@cscheid is already working on this.

Since Jan 17, 2025.

bug crossref manuscript triaged-to
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

This minimal example breaks quarto render (tested with 1.6.40):

_quarto.yml:

project:
  type: manuscript
manuscript:
  article: index.qmd

index.qmd:

```{dot}
graph {
  X;
}
```

::: {#fig-example}
A list:

- item
:::

The error message is

Error running filter /opt/quarto/share/filters/main.lua:
Block, list of Blocks, or compatible element expected, got table
while retrieving function argument content
while retrieving arguments for function Div
stack traceback:
/opt/quarto/share/filters/main.lua:22698: in field 'render'
/opt/quarto/share/filters/main.lua:1196: in local 'filter_fn'
/opt/quarto/share/filters/main.lua:636: in function </opt/quarto/share/filters/main.lua:626>
(...tail calls...)
[C]: in ?
[C]: in method 'walk'
/opt/quarto/share/filters/main.lua:558: in function </opt/quarto/share/filters/main.lua:547>
(...tail calls...)
/opt/quarto/share/filters/main.lua:1297: in local 'callback'
/opt/quarto/share/filters/main.lua:1315: in upvalue 'run_emulated_filter_chain'
/opt/quarto/share/filters/main.lua:1351: in function </opt/quarto/share/filters/main.lua:1348>
stack traceback:
/opt/quarto/share/filters/main.lua:558: in function </opt/quarto/share/filters/main.lua:547>
(...tail calls...)
/opt/quarto/share/filters/main.lua:1297: in local 'callback'
/opt/quarto/share/filters/main.lua:1315: in upvalue 'run_emulated_filter_chain'
/opt/quarto/share/filters/main.lua:1351: in function </opt/quarto/share/filters/main.lua:1348>

Strangly it works with document type book:

project:                                                                                                                                                       
  type: book                                                                                                                                                   
book:                                                                                                                                                          
  chapters:                                                                                                                                                    
    - index.qmd  

It also works when either the diagram or the figure div are removed or when the figure div contains no list.

P.S: output of quarto check:

Quarto 1.6.40
[✓] Checking environment information...
      Quarto cache location: /home/voj/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.4.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.46.3: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.6.40
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: v2024.11
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /home/voj/.TinyTeX/bin/x86_64-linux
      Version: 2024

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.12.7
      Path: /usr/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.