aboutsummaryrefslogtreecommitdiff
path: root/test/command/8948.md
AgeCommit message (Collapse)Author
2024-06-10SelfContained: only create svg elements for SVG images when...John MacFarlane
...the image has the class `inline-svg`. Otherwise just use a `data` URI as we do with other images. Closes #9787.
2024-02-29SelfContained: add `role="img"` to svgs.John MacFarlane
This is needed in conjunction with `aria-label` for screen readers. Completes the fix to #9525.
2024-02-29SelfContained: Add aria-label to svg elements.John MacFarlane
Screen readers don't seem to pay attention to an alt attribute on svg. But they do read the aria-label. So if there's an alt attribute, we copy its contents to aria-label, unless there is already an aria-label. This will make pandoc's output with `--embed-resources` more accessible. Closes #9525.
2024-02-09Fix size of duplicated SVGs with `--embed-resources`.John MacFarlane
Closes #9439.
2023-11-25Update command test for SVG embedding changes.John MacFarlane
2023-07-27SelfContained: retain attributes in svg tag...John MacFarlane
when referring to another svg's content using `<use>`. Closes #8969.
2023-07-26SelfContained: fix calculation of svg width and height.John MacFarlane
We were computing width and height from viewBox incorrectly. See #8969.
2023-07-25SelfContained: Improve inline SVGs.John MacFarlane
- Ensure that width and height attributes don't get specified twice is both the img tag and the svg include them. - Omit unnecessary attributes xmlns, xmlns:xlink, and version on svg element. - Use 20 character rather than 40 character hashes for generated IDs. Closes #8965.
2023-07-13Fix bugs in implementation of #8948.John MacFarlane
2023-07-11SelfContained: Use inline svg instead of data uris...John MacFarlane
for SVG images in HTML5. Closes #8948. Note that SelfContained does not have access to the writer name, so we check for HTML5 by determining whether the document starts with `<DOCTYPE! html>`. This means that inline SVG won't be used when generating document fragments. An API change could be contemplated to give more flexibility, but this is okay for now.