@@ -3176,12 +3176,22 @@ Usage:
31763176
31773177### fetch {#pandoc.mediabag.fetch}
31783178
3179−`fetch (source, base_url)`
3179+`fetch (source)`
31803180
31813181Fetches the given source from a URL or local file. Returns two
31823182values: the contents of the file and the MIME type (or an empty
31833183string).
31843184
3185+The function will first try to retrieve `source` from the
3186+mediabag; if that fails, it will try to download it or read it
3187+from the local file system while respecting pandoc's "resource
3188+path" setting.
3189+
3190+Parameters:
3191+
3192+`source`:
3193+: path to a resource; either a local file path or URI
3194+
31853195Returns:
31863196
31873197- the entries MIME type, or nil if the file was not found.
@@ -3190,7 +3200,7 @@ Returns:
31903200Usage:
31913201
31923202 local diagram_url = "https://pandoc.org/diagram.jpg"
3193− local mt, contents = pandoc.mediabag.fetch(diagram_url, ".")
3203+ local mt, contents = pandoc.mediabag.fetch(diagram_url)
31943204
31953205# Module pandoc.List
31963206