diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-10-01 00:33:56 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-10-01 00:33:56 -0700 |
commit | 4c3b3bf65a769eaec4b8382d8ada4f28a3b91e04 (patch) | |
tree | 55d9c3e31f5374feed4e9ae35f8da2a5cadc8d06 /doc | |
parent | 8768f7e5b060b4024d88d12f4255d515dd4ca7fa (diff) | |
download | pandoc-4c3b3bf65a769eaec4b8382d8ada4f28a3b91e04.tar.gz |
Lua: move sha1 from pandoc.mediabag to pandoc.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua-filters.md | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md index 8bff62c21..851a061c5 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -1063,6 +1063,19 @@ Lua functions for pandoc scripts. -- the above is equivallent to -- return {{Str = Str}} +[`sha1 (contents)`]{#mediabag-sha1} + +: Returns the SHA1 has of the contents. + + Returns: + + - SHA1 hash of the contents. + + Usage: + + local fp = pandoc.mediabag.sha1("foobar") + + # Submodule mediabag The submodule `mediabag` allows accessing pandoc's media @@ -1130,18 +1143,6 @@ storage. The "media bag" is used when pandoc is called with the local filename = "media/diagram.png" local mt, contents = pandoc.mediabag.lookup(filename) -[`sha1 (contents)`]{#mediabag-sha1} - -: Returns the SHA1 has of the contents. - - Returns: - - - SHA1 hash of the contents. - - Usage: - - local fp = pandoc.mediabag.sha1("foobar") - [`fetch (source, base_url)`]{#mediabag-fetch} : Fetches the given source from a URL or local file. |