diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-11-29 18:12:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 09:12:30 -0800 |
commit | fa838deefc6badc62b9ca4d93aba55e9fbd747ec (patch) | |
tree | f3280f320ce9652185b85fdbac473a898409f3d5 /doc | |
parent | 136739b7ed6dbd4052be582febf4ff3beea32d87 (diff) | |
download | pandoc-fa838deefc6badc62b9ca4d93aba55e9fbd747ec.tar.gz |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua-filters.md | 18 |
1 files changed, 0 insertions, 18 deletions
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)` |