aboutsummaryrefslogtreecommitdiff
path: root/doc/lua-filters.md
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2019-10-27 23:09:20 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2019-10-27 23:09:20 +0100
commit88409f9afa125d012da13965c199e794c1b455f6 (patch)
tree3fca688442406fc7f50a33eff79f8352ebaa96ad /doc/lua-filters.md
parent909083090a63f65f4e720d210272c4bd6866cbee (diff)
downloadpandoc-88409f9afa125d012da13965c199e794c1b455f6.tar.gz
doc/lua-filters.md: fix mistakes in mediabag module docs
See: #5851
Diffstat (limited to 'doc/lua-filters.md')
-rw-r--r--doc/lua-filters.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index 723f3cd08..e7c7d4379 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -2493,7 +2493,7 @@ Usage:
The `pandoc.mediabag` module allows accessing pandoc's media
storage. The "media bag" is used when pandoc is called with the
-`--extract-media` or `--standalone`/`-s` option.
+`--extract-media` or (for HTML only) `--self-contained` option.
The module is loaded as part of module `pandoc` and can either
be accessed via the `pandoc.mediabag` field, or explicitly
@@ -2586,7 +2586,7 @@ Usage:
-- calculate the size of the media bag.
local mb_items = pandoc.mediabag.list()
local sum = 0
- for i = 1, #mb_items:
+ for i = 1, #mb_items do
sum = sum + mb_items[i].length
end
print(sum)
@@ -2629,7 +2629,7 @@ Returns:
Usage:
local diagram_url = "https://pandoc.org/diagram.jpg"
- local contents = pandoc.mediabag.fetch(diagram_url, ".")
+ local mt, contents = pandoc.mediabag.fetch(diagram_url, ".")
# Module pandoc.List