quarto-dev / quarto-dev/quarto-cli
The filename of a code cell gets centered if it is inside a figure cross-reference
Open
@cscheid is already working on this.
Since May 22, 2024.
bug
crossref
early-in-release
html
layout
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
When the filename attribute is used for a code cell inside a figure cross-reference it gets centered, rather than being left-aligned.
Steps to reproduce
---
title: "Code Filename in a Figure"
format: html
---
```{.r filename="R Console"}
1 + 1
```
::: {#fig-1}
```{.r filename="R Console"}
1 + 1
```
Some R code
:::
Expected behavior
The filename of the code cell, R Console, should be in the same position in both examples.
Actual behavior
The filename of the code cell, R Console, is centered when it is inside the figure, not left-aligned.
Your environment
- OS: Mac Sonoma 14.4.1
Quarto check output
quarto check
Quarto 99.9.9
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.2.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.41.0: OK
Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 99.9.9
fatal: not a git repository (or any of the parent directories): .git
Path: /Users/charlottewickham/Documents/posit/quarto-cli/package/dist/bin
[✓] Checking tools....................OK
TinyTeX: v2024.03.13
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/charlottewickham/Library/TinyTeX/bin/universal-darwin
Version: 2024
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.12.1
Path: /Users/charlottewickham/Documents/posit/weekly-log/2024-04-01/.venv/bin/python
Jupyter: 5.7.2
Kernels: julia-1.10, python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.3.3
Path: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources
LibPaths:
- /Users/charlottewickham/Library/R/arm64/4.3/library
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.45
rmarkdown: 2.26
[✓] Checking Knitr engine render......OK
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.