doc/lua-filters.md: fix mistakes in mediabag module docs

See: #5851
This commit is contained in:
Albert Krewinkel 2019-10-27 23:09:20 +01:00
parent 909083090a
commit 88409f9afa
No known key found for this signature in database
GPG key ID: 388DC0B21F631124

View file

@ -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