-
Notifications
You must be signed in to change notification settings - Fork 410
Closed
Labels
asciidocAbout format asciidocAbout format asciidocbugSomething isn't workingSomething isn't workingcrossref
Milestone
Description
Bug description
The latest pre-release of Quarto (v1.4.533) produces AsciiDoc syntax that causes figure and table captions to be disconnected. The captions appear as a numbered list with a single item. This problem does not exist for HTML and PDF outputs.
Steps to reproduce
Save the following code to caption.qmd.
---
title: Caption
---
@tbl-fruit shows just how expensive fruit is these days.
fruit| price
-----|-----:
apple|2.05
pear|1.37
orange|3.09
: Various fruits and their prices {#tbl-fruit}
And if that's not convincing, consider @fig-fruit.
```{mermaid}
%%| label: fig-fruit
%%| fig-cap: Pretty convincing
flowchart LR
A[Hard edge] --> B(Round edge)
B --> C{Decision}
C --> D[Result one]
C --> E[Result two]
```
Fin.Expected behavior
I'm not exactly sure what the correct AsciiDoc syntax is, but the latest Quarto release (v1.3.450) produces:
= Caption
<<tbl-fruit>> shows just how expensive fruit is these days.
[[tbl-fruit]]
.Various fruits and their prices
[cols=",>",options="header",]
|===
|fruit |price
|apple |2.05
|pear |1.37
|orange |3.09
|===
And if that’s not convincing, consider <<fig-fruit>>.
.Pretty convincing
[#fig-fruit]
image:caption_files/figure-asciidoctor/mermaid-figure-1.png[caption_files/figure-asciidoctor/mermaid-figure-1,width=550,height=133]
Fin.
Actual behavior
The command:
$ quarto render caption.qmd --quiet --to asciidoc --output -
Produces:
= Caption
<<tbl-fruit>> shows just how expensive fruit is these days.
. Various fruits and their prices
[[tbl-fruit]]
====
[cols=",>",options="header",]
|===
|fruit |price
|apple |2.05
|pear |1.37
|orange |3.09
|===
====
And if that’s not convincing, consider <<fig-fruit>>.
. Pretty convincing
[[fig-fruit]]
====
image:caption_files/figure-asciidoc/mermaid-figure-1.png[caption_files/figure-asciidoc/mermaid-figure-1,width=550,height=133]
====
Fin.
Your environment
OS: macOS Monterey 12.5
Quarto check output
Quarto 1.4.533
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.533
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
TinyTeX: v2023.12
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/jeroen/Library/TinyTeX/bin/universal-darwin
Version: 2023
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.11.1
Path: /Users/jeroen/.pyenv/versions/3.11.1/bin/python3
Jupyter: 5.3.1
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.3.2
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.44
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
asciidocAbout format asciidocAbout format asciidocbugSomething isn't workingSomething isn't workingcrossref