pandoc/test/Tests/Readers
John MacFarlane 8511f6fdf6 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.
2021-05-24 09:20:44 -07:00
..
Org Org reader: fix bug in org-ref citation parsing. 2021-02-18 21:59:18 +01:00
Creole.hs Avoid unnecessary use of NoImplicitPrelude pragma (#7089) 2021-02-07 10:02:35 -08:00
Docx.hs MediaBag improvements. 2021-05-24 09:20:44 -07:00
DokuWiki.hs Avoid unnecessary use of NoImplicitPrelude pragma (#7089) 2021-02-07 10:02:35 -08:00
EPUB.hs Avoid unnecessary use of NoImplicitPrelude pragma (#7089) 2021-02-07 10:02:35 -08:00
FB2.hs Avoid unnecessary use of NoImplicitPrelude pragma (#7089) 2021-02-07 10:02:35 -08:00
HTML.hs HTML writer: keep attributes from code nested below pre tag. 2021-05-17 18:08:02 +02:00
JATS.hs Add new unexported module T.P.XMLParser. 2021-02-10 22:04:11 -08:00
Jira.hs Jira reader: mark divs created from panels with class "panel". 2021-03-13 14:29:47 +01:00
LaTeX.hs Remove superfluous imports. 2021-02-28 22:57:36 -08:00
Man.hs Avoid unnecessary use of NoImplicitPrelude pragma (#7089) 2021-02-07 10:02:35 -08:00
Markdown.hs Change reader types, allowing better tracking of source positions. 2021-05-09 19:11:34 -06:00
Muse.hs Avoid unnecessary use of NoImplicitPrelude pragma (#7089) 2021-02-07 10:02:35 -08:00
Odt.hs Treat tabs as spaces in ODT Reader. (#7185) 2021-03-31 16:44:34 -07:00
Org.hs Update copyright notices for 2021 (#7012) 2021-01-08 09:38:20 -08:00
RST.hs Avoid unnecessary use of NoImplicitPrelude pragma (#7089) 2021-02-07 10:02:35 -08:00
Txt2Tags.hs Avoid unnecessary use of NoImplicitPrelude pragma (#7089) 2021-02-07 10:02:35 -08:00