-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Using GATSBY_EMPTY_ALT ignored for figcaption-generation by gatsby-remark-image ie creates non-sense figcaption #30285
Comments
@ronalde, can I work on this issue? |
@nategiraudeau Please do! |
Hello I Can fix this, but please can explain what exactly the problem is?? What exactly you wanted to get fixed?? |
@nategiraudeau Thanks for your swift and clean PR! |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
@ronalde can this issue be reopened? I was able to fix the problem with the linter that was blocking the pull request from being merged. |
I don't know @nategiraudeau. I've added a comment with that question for @vladar at PR; it now seems to be blocked by the final step "cloud tests". |
The Cloud Tests don't normally ever finish if all the other tests have passed. So the pull request is ready to merged. |
The fix described in issue #20179 introduces a regression, especially from an accessibility perspective. When declaring an empty alt-attribute for an image using the keyword
GATSBY_EMPTY_ALT
in markdown (![GATSBY_EMPTY_ALT](rel/path.jpg)
and having setshowCaptions: true
in the plugin-options ingatsby-config.js
, the plugin produces unwanted HTML:alt
-attribute value of theimg
-element like instructed (line 4);figcaption
-element below thefigure
-element (line 7) that contains unwanted (and non-sense) content:<p>GATSBY<em>EMPTY</em>ALT</p>
.This seems to fix the problem for current 4.x versions:
Furthermore, this feature should be documented in `README.md:
Originally posted by @ronalde in #20179 (comment)
The text was updated successfully, but these errors were encountered: