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

Enforce the use of fig.alt in gitbook? #76

Open
ThierryO opened this issue Jul 12, 2021 · 0 comments
Open

Enforce the use of fig.alt in gitbook? #76

ThierryO opened this issue Jul 12, 2021 · 0 comments
Labels

Comments

@ThierryO
Copy link
Collaborator

I found that bookdown::gitbook has a fig.alt chunk option.
This allows to set the alt tag.
Which is useful for visually impaired readers.

We could detect at runtime if fig.alt is set. And issue a warning or error when it is missing. E.g.
https://github.com/jumpingrivers/hugo-rmd/blob/736d5e91e1c75aed245cb574d82dd7ccb15234b1/R/hugo.R#L73

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

No branches or pull requests

1 participant