git.iko.soy/typeable/pandoc
on master help sign in
doc/lua-filters.md: fix mistakes in mediabag module docs
88409f9Albert Krewinkel
doc/lua-filters.md+3−3
@@ -2493,7 +2493,7 @@ Usage:
2493
2493
2494The `pandoc.mediabag` module allows accessing pandoc's media
2494The `pandoc.mediabag` module allows accessing pandoc's media
2495storage. The "media bag" is used when pandoc is called with the
2495storage. 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.
2497
2497
2498The module is loaded as part of module `pandoc` and can either
2498The module is loaded as part of module `pandoc` and can either
2499be accessed via the `pandoc.mediabag` field, or explicitly
2499be accessed via the `pandoc.mediabag` field, or explicitly
@@ -2586,7 +2586,7 @@ Usage:
2586 -- calculate the size of the media bag.
2586 -- calculate the size of the media bag.
2587 local mb_items = pandoc.mediabag.list()
2587 local mb_items = pandoc.mediabag.list()
2588 local sum = 0
2588 local sum = 0
2589− for i = 1, #mb_items:
2589+ for i = 1, #mb_items do
2590 sum = sum + mb_items[i].length
2590 sum = sum + mb_items[i].length
2591 end
2591 end
2592 print(sum)
2592 print(sum)
@@ -2629,7 +2629,7 @@ Returns:
2629Usage:
2629Usage:
2630
2630
2631 local diagram_url = "https://pandoc.org/diagram.jpg"
2631 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, ".")
2633
2633
2634# Module pandoc.List
2634# Module pandoc.List
2635
2635