@@ -1063,6 +1063,19 @@ Lua functions for pandoc scripts.
10631063 -- the above is equivallent to
10641064 -- return {{Str = Str}}
10651065
1066+[`sha1 (contents)`]{#mediabag-sha1}
1067+
1068+: Returns the SHA1 has of the contents.
1069+
1070+ Returns:
1071+
1072+ - SHA1 hash of the contents.
1073+
1074+ Usage:
1075+
1076+ local fp = pandoc.mediabag.sha1("foobar")
1077+
1078+
10661079# Submodule mediabag
10671080
10681081The submodule `mediabag` allows accessing pandoc's media
@@ -1130,18 +1143,6 @@ storage. The "media bag" is used when pandoc is called with the
11301143 local filename = "media/diagram.png"
11311144 local mt, contents = pandoc.mediabag.lookup(filename)
11321145
1133−[`sha1 (contents)`]{#mediabag-sha1}
1134−
1135−: Returns the SHA1 has of the contents.
1136−
1137− Returns:
1138−
1139− - SHA1 hash of the contents.
1140−
1141− Usage:
1142−
1143− local fp = pandoc.mediabag.sha1("foobar")
1144−
11451146[`fetch (source, base_url)`]{#mediabag-fetch}
11461147
11471148: Fetches the given source from a URL or local file.