@@ -478,6 +478,43 @@ function CodeBlock(block)
483+UTF-8 aware text manipulation functions, implemented in Haskell.
484+These are available to any lua filter. However, the module must
485+be explicitly loaded:
488+-- uppercase all regular text in a document:
489+text = require 'text'
491+ s.text = text.upper(s.text)
496+[`lower (s)`]{#text-lower}
498+: Returns a copy of a UTF-8 string, converted to lowercase.
500+[`upper (s)`]{#text-upper}
502+: Returns a copy of a UTF-8 string, converted to uppercase.
504+[`reverse (s)`]{#text-reverse}
506+: Returns a copy of a UTF-8 string, with characters reversed.
508+[`len (s)`]{#text-len}
510+: Returns the length of a UTF-8 string.
512+[`sub (s)`]{#text-sub}
514+: Returns a substring of a UTF-8 string, using lua's string
481# Module pandoc
518# Module pandoc
483Lua functions for pandoc scripts.
520Lua functions for pandoc scripts.