diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-08-28 09:19:50 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-08-28 12:16:14 -0700 |
commit | 51caa8b78d66ac81253766cc2c6916d39c14efc2 (patch) | |
tree | db2ca0329597c3018bba6f9838a713f044f34605 /src/Text/Pandoc/MIME.hs | |
parent | 4d7cdc467163601fd819199a69860616a9778040 (diff) | |
download | pandoc-51caa8b78d66ac81253766cc2c6916d39c14efc2.tar.gz |
Docx writer: handle SVG images.
This change has several parts:
- In Text.Pandoc.App, if the writer is docx, we fill the media
bag and attempt to convert any SVG images to PNG, adding these
to the media bag. The PNG backups have the same filenames as
the SVG images, but with an added .png extension. If the conversion
cannot be done (e.g. because rsvg-convert is not present),
a warning is omitted.
- In Text.Pandoc.Writers.Docx, we now use Word 2016's syntax for
including SVG images. If a PNG fallback is present in the media bag,
we include a link to that too.
It would be helpful if someone with an old Word version could test
to see that the documents we produce can be opened and viewed with
the PNG fallbacks. If not, then perhaps we can eliminate the
slightly complex code for producing these fallbacks.
Closes #4058.
Diffstat (limited to 'src/Text/Pandoc/MIME.hs')
0 files changed, 0 insertions, 0 deletions