diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-05-23 22:57:02 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-05-24 09:20:44 -0700 |
commit | 8511f6fdf6c9fbc2cc926538bca4ae9f554b4ed9 (patch) | |
tree | dfa3c06ba0756109cc5581f22d7d96d8f7ff3fed /test/command/nested-table-to-asciidoc-6942.md | |
parent | 58fbf56548bf985b40e4338befaf5b11a0665cbe (diff) | |
download | pandoc-8511f6fdf6c9fbc2cc926538bca4ae9f554b4ed9.tar.gz |
MediaBag improvements.
In the current dev version, we will sometimes add
a version of an image with a hashed name, keeping
the original version with the original name, which
would leave to undesirable duplication.
This change separates the media's filename from the
media's canonical name (which is the path of the link
in the document itself). Filenames are based on SHA1
hashes and assigned automatically.
In Text.Pandoc.MediaBag:
- Export MediaItem type [API change].
- Change MediaBag type to a map from Text to MediaItem [API change].
- `lookupMedia` now returns a `MediaItem` [API change].
- Change `insertMedia` so it sets the `mediaPath` to
a filename based on the SHA1 hash of the contents.
This will be used when contents are extracted.
In Text.Pandoc.Class.PandocMonad:
- Remove `fetchMediaResource` [API change].
Lua MediaBag module has been changed minimally. In the future
it would be better, probably, to give Lua access to the full
MediaItem type.
Diffstat (limited to 'test/command/nested-table-to-asciidoc-6942.md')
0 files changed, 0 insertions, 0 deletions