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

Add clarification of alt on img in docs #692

Merged

Conversation

cballenar
Copy link
Contributor

@cballenar cballenar commented Jun 5, 2022

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

Included alt as one of the attributes expected in the img component as this component outputs both alt AND title. Not having both can be misleading specially since alt is what's most often/easily used when creating an image in markdown [!alt](src "title"). The use of alt over title comes not only from practicality but also due to accessibility. Additionally, removed parenthesis as it read better now that there wasn't just one item.

Included `alt` as one of the attributes expected in the `img` component as this component outputs both and `alt` is what's most often/easily used when creating an image in markdown `[!alt](src "title")`. Removed parenthesis as it read better now that there wasn't just one item.
@github-actions github-actions bot added the 👋 phase/new Post is being triaged automatically label Jun 5, 2022
@github-actions

This comment has been minimized.

readme.md Outdated Show resolved Hide resolved
@github-actions github-actions bot added 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Jun 5, 2022
@codecov-commenter

This comment was marked as resolved.

@wooorm wooorm changed the title Clarification in documentation for Img Components Add clarification of alt on img in docs Jun 5, 2022
@wooorm wooorm merged commit cfe075b into remarkjs:main Jun 5, 2022
@wooorm wooorm added 📚 area/docs This affects documentation 💪 phase/solved Post is done labels Jun 5, 2022
@wooorm
Copy link
Member

wooorm commented Jun 5, 2022

Thank you!

@github-actions

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 area/docs This affects documentation 💪 phase/solved Post is done
Development

Successfully merging this pull request may close these issues.

3 participants