@@ -1135,6 +1135,10 @@ storage. The "media bag" is used when pandoc is called with the
1135: Returns a filename with a basename based on the SHA1 has of the
1135: Returns a filename with a basename based on the SHA1 has of the
1136 contents and an extension based on the mime type.
1136 contents and an extension based on the mime type.
1140+ - Filename based on SHA1 hash.
1140 local fp = pandoc.mediabag.hashname("plain/text", "foobar")
1144 local fp = pandoc.mediabag.hashname("plain/text", "foobar")
@@ -1145,6 +1149,11 @@ storage. The "media bag" is used when pandoc is called with the
1145 Returns two values: the contents of the file and the mime
1149 Returns two values: the contents of the file and the mime
1146 type (or an empty string).
1150 type (or an empty string).
1154+ - the entries MIME type, or nil if the file was not found.
1155+ - contents of the file, or nil if the file was not found.
1150 local diagram_url = "https://pandoc.org/diagram.jpg"
1159 local diagram_url = "https://pandoc.org/diagram.jpg"