Replies: 3 comments 8 replies
-
Also, first reported in Pandoc in jgm#6782 with more details on how it should be handled |
Beta Was this translation helpful? Give feedback.
-
These inconsistencies seem to arise from the different interpretations that different writers do of the internal representation. I believe that, in the best case, the alt text should be explicitly provided in the input (for the case of markdown) and perhaps capture it as an This is the current native representation:
I think the last should be instead (Not the actual output)
Perhaps there is also an issue with the markdown reader. |
Beta Was this translation helpful? Give feedback.
-
@cderv , Do you think the
|
Beta Was this translation helpful? Give feedback.
-
I opening this so share our work and findings regarding the difficulty to support alt text in Figures in several format because of Pandoc handling in some formats.
This is how Figure is parsed currently
And this is not used the same depending on the output formant
HTML 4
See that no alt text is set
caption
title
You could try set attribute explicitly
but you'll get the attribute twice - not great.
HTML 5
caption
title
LaTeX
Word and PPTX
This is not quite good
In word
Will lead to having
caption
: "look a puffin"See yihui/knitr#1965 (comment)
For PPTX, we'll get the link as alt text ! See rstudio/rmarkdown#2106
We try to fix this in R Markdown as we could (by bypassing Pandoc wirting raw ouput) but we do it for HTML4 output only currently. The other format still needs to be done: yihui/knitr#1967
Why this could be important for our project here ?
I think knowing this could help design a Figure type that clearly has or know how to deal with this.
This syntax could be a solution with the current system using
link_attributes
extension, if the attributes from HTML would be recognized and processed for other formats.@apreshill I wrote this after looking more at your different research and comments in our issues to centralize in this project in case in can help.
Beta Was this translation helpful? Give feedback.
All reactions