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

Switch to figures for block-level images #849

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

davidmerfield
Copy link
Owner

@davidmerfield davidmerfield commented Feb 1, 2025

Previously:

![Caption](/path/to/_image.jpeg)

Would become the following HTML:

<p><img src="/path/to/_image.jpeg" width="250" alt="Caption" /></p>

Now it becomes this:

<figure>
<img src="/path/to/_image.jpeg" width="250" alt="Caption" />
<figcaption aria-hidden="true">Caption</figcaption>
</figure>
  • Use title rather than alt text when present for the caption
  • Hide the figcaption unless image captions are enabled
  • Tell Audun
  • Tell Robin

@davidmerfield davidmerfield changed the title Switch to figures Switch to figures for block-level images Feb 6, 2025
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

Successfully merging this pull request may close these issues.

1 participant