From fa838deefc6badc62b9ca4d93aba55e9fbd747ec Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Mon, 29 Nov 2021 18:12:30 +0100 Subject: Lua: remove `pandoc.utils.text` (#7720) The new `pandoc.Inlines` function behaves identical on string input, but allows other Inlines-like arguments as well. The `pandoc.utils.text` function could be written as function pandoc.utils.text (x) assert(type(x) == 'string') return pandoc.Inlines(x) end --- doc/lua-filters.md | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'doc') diff --git a/doc/lua-filters.md b/doc/lua-filters.md index ff56e1a8e..ac682a90d 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -3121,24 +3121,6 @@ Usage: -- outputs "Moin" print(pandoc.utils.stringify(inline)) -### text {#pandoc.utils.text} - -`text (words)` - -Converts a string to `Inlines`, treating interword spaces as -`Space`s or `SoftBreak`s. If you want a single `Str` with literal -spaces, use `pandoc.Str`. - -Parameters: - -`words` -: markup-less text (string) - -Returns: - -- List of inline elements split into words (Inlines) - - ### to\_roman\_numeral {#pandoc.utils.to_roman_numeral} `to_roman_numeral (integer)` -- cgit v1.2.3