diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2019-02-16 13:20:33 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2019-05-29 23:18:44 +0200 |
commit | 0a6a11cfabead239eab3baec065d8d6e95bb6447 (patch) | |
tree | 576c75d18bc76e840ec7ed60b7d089dd90933ecf /doc | |
parent | 3097ee100ed260a5c2cea7df5bf80c989687df44 (diff) | |
download | pandoc-0a6a11cfabead239eab3baec065d8d6e95bb6447.tar.gz |
pandoc.mediabag module: add function `empty`
Function `pandoc.mediabag.empty` was added. It allows to clean-out the media
bag, removing all entries.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua-filters.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md index 667a58bcc..d60957a2e 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -2448,9 +2448,14 @@ The module is loaded as part of module `pandoc` and can either be accessed via the `pandoc.mediabag` field, or explicitly required, e.g.: - local mb = require 'pandoc.mediabag' +### empty {#mediabag-empty} + +`empty ()` + +Clear-out the media bag, deleting all items. + ### insert {#mediabag-insert} `insert (filepath, mime_type, contents)` |