diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2019-05-04 07:06:30 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-05-04 01:06:30 -0400 |
commit | 786594b23be4a757e95776f782527c8a98fbaab5 (patch) | |
tree | 6cf961b47a7d9df096be0347497a56c26b160aa8 /data/pandoc.lua | |
parent | 4f260c96d9b84fb90d4e9b7c611556b1708b90fe (diff) | |
download | pandoc-786594b23be4a757e95776f782527c8a98fbaab5.tar.gz |
Lua: add `pandoc.system` module (#5468)
The `system` Lua module provides utility functions to interact with the
operating- and file system. E.g.
print(pandoc.system.get_current_directory())
or
pandoc.system.with_temporary_directory('tikz', function (dir)
-- write and compile a TikZ file with pdflatex
end)
Diffstat (limited to 'data/pandoc.lua')
-rw-r--r-- | data/pandoc.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua index b69070e81..8a45a39e9 100644 --- a/data/pandoc.lua +++ b/data/pandoc.lua @@ -27,6 +27,7 @@ local M = {} -- Re-export bundled modules M.List = require 'pandoc.List' M.mediabag = require 'pandoc.mediabag' +M.system = require 'pandoc.system' M.utils = require 'pandoc.utils' M.text = require 'text' |