summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lua-filters.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index 3a6695f9f..c6e1814b4 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -1135,6 +1135,10 @@ storage. The "media bag" is used when pandoc is called with the
: Returns a filename with a basename based on the SHA1 has of the
contents and an extension based on the mime type.
+ Returns:
+
+ - Filename based on SHA1 hash.
+
Usage:
local fp = pandoc.mediabag.hashname("plain/text", "foobar")
@@ -1145,6 +1149,11 @@ storage. The "media bag" is used when pandoc is called with the
Returns two values: the contents of the file and the mime
type (or an empty string).
+ Returns:
+
+ - the entries MIME type, or nil if the file was not found.
+ - contents of the file, or nil if the file was not found.
+
Usage:
local diagram_url = "https://pandoc.org/diagram.jpg"