Image alt text compatible with Quarto and Pandoc #12731
Unanswered
dmca-glasgow
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I don't think so because this is a side effect of the "figure" definition which differs between Quarto and Pandoc. This was needed for cross-reference and cross-formats. Accessibility: For better accessibility, please ensure link text is descriptive and meaningful rather than using generic terms such as "here". This helps all users understand the link's destination. See Writing meaningful link text (WCAG). |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello,
As mentioned previously, I'm creating an accessibility tool which integrates Quarto. At this stage, this means converting LaTeX syntax to it's Quarto Markdown equivalent. Quarto was chosen partly for it's close integration of Pandoc, as being able to easily convert documents to other formats can be useful in an accessibility context.
I'm currently working on images/figures. I've noticed this difference between Quarto and Pandoc:
Given the following Markdown:
With Quarto:
The image alt text is removed in the Quarto version.
Using
fig-alt
from the Quarto documentation outputs:Which is equivalent to (without the data attribute):
And Quarto now behaves as intended:
Is there a Markdown syntax I can use in both Quarto and Pandoc to provide HTML image alt text?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions