Skip to content
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

JG: Alt text for images inserted with markdown markup #93

Open
hturner opened this issue Sep 8, 2023 · 2 comments
Open

JG: Alt text for images inserted with markdown markup #93

hturner opened this issue Sep 8, 2023 · 2 comments
Assignees

Comments

@hturner
Copy link

hturner commented Sep 8, 2023

Comment from @ajrgodfrey

Images inserted with markdown markup are using the same text for alt text as for the figure caption. It would be better to use a simple default for missing alt text, e.g. "graphic without alt text"

Example: Figure 1 in RJ-2012-006

RJ-2012-006.Rmd (partial)

![Figure 1: Conceptual model of the Apple Xgrid framework (derived from
graphic by F. Loxy)](images/xgridframework.png){#fig:input1
width="100%"}

RJ-2012-006.html (partial)

uQmCC" style="width:100.0%" alt="Figure 1: Conceptual model of the Apple Xgrid framework (derived from graphic by F. Loxy)" />
<figcaption aria-hidden="true">Figure 1: Conceptual model of the Apple Xgrid framework (derived from
graphic by F. Loxy)</figcaption>

Potentially the alt text or the caption could be added as an attribute like the figure number and the width?

@hturner
Copy link
Author

hturner commented Sep 8, 2023

Not sure if I put this issue in the right place - if the attribute needs to be defined in rjtools, then it's fine as is. But it may just be an issue for converting legacy articles, cc @Abhi-1U.

@dicook
Copy link
Collaborator

dicook commented Sep 28, 2023

This is possibly a pandoc issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants