git.iko.soy/typeable/pandoc
on master help sign in
doc/lua-filters.md: fix mistakes in mediabag module docs

See: #5851

commit88409f9afa125d012da13965c199e794c1b455f6 authorAlbert Krewinkel <albert@zeitkraut.de> dateSun 27 Oct 2019, 23:09 (7 years ago) parent9090830
1 file changed+3−3
doc/lua-filters.md+3−3
doc/lua-filters.md+3−3
@@ -2493,7 +2493,7 @@ Usage:
24932493
24942494The `pandoc.mediabag` module allows accessing pandoc's media
24952495storage. The "media bag" is used when pandoc is called with the
2496−`--extract-media` or `--standalone`/`-s` option.
2496+`--extract-media` or (for HTML only) `--self-contained` option.
24972497
24982498The module is loaded as part of module `pandoc` and can either
24992499be accessed via the `pandoc.mediabag` field, or explicitly
@@ -2586,7 +2586,7 @@ Usage:
25862586 -- calculate the size of the media bag.
25872587 local mb_items = pandoc.mediabag.list()
25882588 local sum = 0
2589− for i = 1, #mb_items:
2589+ for i = 1, #mb_items do
25902590 sum = sum + mb_items[i].length
25912591 end
25922592 print(sum)
@@ -2629,7 +2629,7 @@ Returns:
26292629Usage:
26302630
26312631 local diagram_url = "https://pandoc.org/diagram.jpg"
2632− local contents = pandoc.mediabag.fetch(diagram_url, ".")
2632+ local mt, contents = pandoc.mediabag.fetch(diagram_url, ".")
26332633
26342634# Module pandoc.List
26352635