@@ -2192,11 +2192,20 @@ Usage:
2192 -- The inline element in that block is an `Emph`
2192 -- The inline element in that block is an `Emph`
2193 assert(block.content[1].t == "Emph")
2193 assert(block.content[1].t == "Emph")
2195# Module pandoc.utils
2196# Module pandoc.utils
2197This module exposes internal pandoc functions and utility
2198This module exposes internal pandoc functions and utility
2198functions.
2199functions.
2201+The module is loaded as part of the `pandoc` module and available
2202+as `pandoc.utils`. In versions up-to and including pandoc 2.6,
2203+this module had to be loaded explicitly. Example:
2205+ local utils = require 'pandoc.utils'
2207+Use this for backwards compatibility.
2200### blocks\_to\_inlines {#utils-blocks_to_inlines}
2209### blocks\_to\_inlines {#utils-blocks_to_inlines}
2202`blocks_to_inlines (blocks[, sep])`
2211`blocks_to_inlines (blocks[, sep])`
@@ -2468,9 +2477,20 @@ Usage:
2468 local diagram_url = "https://pandoc.org/diagram.jpg"
2477 local diagram_url = "https://pandoc.org/diagram.jpg"
2469 local contents = pandoc.mediabag.fetch(diagram_url, ".")
2478 local contents = pandoc.mediabag.fetch(diagram_url, ".")
2471# Module pandoc.List
2481# Module pandoc.List
2473−Pandoc\'s List type and helper methods
2483+Pandoc's List type and helper methods.
2485+This module is loaded and available as `pandoc.List`. Older
2486+versions up-to and including pandoc 2.6 require the module to be
2487+loaded explicitly. Example:
2489+ local List = require 'pandoc.List'
2491+The above remains the recommended method to use this module; it
2492+provides the List type under an idiomatic name and is fully
2493+backwards compatible.
2475## Metamethods
2495## Metamethods