@@ -657,7 +657,6 @@ M.Superscript = M.Inline:create_constructor(
657657
658658------------------------------------------------------------------------
659659-- Helpers
660−-- @section helpers
661660
662661local function assoc_key_equals (x)
663662 return function (y) return y[1] == x end
@@ -671,7 +670,7 @@ local function lookup(alist, key)
671670 return (List.find_if(alist, assoc_key_equals(key)) or {})[2]
672671end
673672
674−--- Return an iterator which returns key-value pairs of an associative list.
673+-- Return an iterator which returns key-value pairs of an associative list.
675674-- @function apairs
676675-- @tparam {{key, value},...} alist associative list
677676local apairs = function (alist)
@@ -880,12 +879,13 @@ M.UpperAlpha = "UpperAlpha"
880879-- @return A list of filter functions
881880-- @usage
882881-- -- within a file defining a pandoc filter:
883−-- function Str(text)
884−-- return pandoc.Str(utf8.upper(text))
882+-- text = require 'text'
883+-- function Str(elem)
884+-- return pandoc.Str(text.upper(elem.text))
885885-- end
886886--
887887-- return {pandoc.global_filter()}
888−-- -- the above is equivallent to
888+-- -- the above is equivalent to
889889-- -- return {{Str = Str}}
890890function M.global_filter()
891891 local res = {}