| Age | Commit message (Collapse) | Author |
|
...the image has the class `inline-svg`. Otherwise just use a
`data` URI as we do with other images.
Closes #9787.
|
|
This is needed in conjunction with `aria-label` for screen
readers. Completes the fix to #9525.
|
|
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.
|
|
Closes #9439.
|
|
|
|
when referring to another svg's content using `<use>`.
Closes #8969.
|
|
We were computing width and height from viewBox incorrectly.
See #8969.
|
|
- 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.
|
|
|
|
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.
|