aboutsummaryrefslogtreecommitdiff
path: root/data/pandoc.lua
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-12-21 22:30:59 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2017-12-21 22:42:59 +0100
commitbd3ea723717b54e3853487bee7a48947fb73b68a (patch)
treee0c68763a44e4d7156ebfbd46ed8446e976dd8f9 /data/pandoc.lua
parent5ad719c1fb6dbf06cbf4f48e57ae4a6d187e0a5e (diff)
downloadpandoc-bd3ea723717b54e3853487bee7a48947fb73b68a.tar.gz
Lua modules: added pandoc.utils module
A new module `pandoc.utils` has been created. It holds utility functions like `sha1`, which was moved from the main `pandoc` module.
Diffstat (limited to 'data/pandoc.lua')
-rw-r--r--data/pandoc.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua
index df8aa06c4..98d274cf4 100644
--- a/data/pandoc.lua
+++ b/data/pandoc.lua
@@ -903,4 +903,9 @@ function M.global_filter()
return res
end
+------------------------------------------------------------------------
+-- Functions which have moved to different modules
+local utils = require 'pandoc.utils'
+M.sha1 = utils.sha1
+
return M