-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatting in figure captions are ignored in lightbox images #11727
Comments
Thanks for the report, unfortunately your example is not reproducible and does not even have You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Just updated the code with a reproducible one. Lightbox isn't enabled because this is a manuscript project. |
Your updated example is invalid and not reproducible. Here is a small simple reproducible example: ---
title: "Quarto Playground"
format: html
lightbox: true
---
![An image caption in **bold** or *italic*.]({{< placeholder 600 400 >}}){#fig-placeholder} This is a regression from v1.4 (#7592, a4a2049). I bisected the issue to 0b77bc9 |
This is happening because the caption of the image is used as the Title and not a description div; Title is used as attributes and we get this title="Figure 1: An image caption in bold or italic." This is created with
This is also because Lightbox title get its own style. If we want to improve this, we probably need to revisit #7592. In 1.4, no title was set and the caption content was set as Description, which can easily use some html. The question will be what to do when some ---
title: "Quarto Playground"
format: html
lightbox: true
---
![An image caption in **bold** or *italic*.]({{< placeholder 600 400 >}}){#fig-placeholder description="Some description"} #7592 make sure it is used - and why the caption was used as Title. We won't be able to maintain both. 🤔 |
Bug description
Text formatting (bold, italics, etc.) is not rendered in the lightbox image caption, even though the text shows up as expected in the main document.
Steps to reproduce
Expected behavior
No response
Actual behavior
No response
Your environment
No response
Quarto check output
Quarto 1.6.39 [✓] Checking environment information... Quarto cache location: /Users/APCamargo-M55/Library/Caches/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.39 Path: /Applications/quarto/bin [✓] Checking tools....................OK TinyTeX: (not installed) Chromium: (not installed) [✓] Checking LaTeX....................OK Tex: (not detected) [✓] Checking basic markdown render....OK [✓] Checking Python 3 installation....OK Version: 3.9.20 (Conda) Path: /Users/apcamargo/.micromamba/bin/python Jupyter: (None) Jupyter is not available in this Python installation. Install with conda install jupyter [✓] Checking R installation...........(None) Unable to locate an installed version of R. Install R from https://cloud.r-project.org/
The text was updated successfully, but these errors were encountered: