aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-11-29 18:12:30 +0100
committerGitHub <noreply@github.com>2021-11-29 09:12:30 -0800
commitfa838deefc6badc62b9ca4d93aba55e9fbd747ec (patch)
treef3280f320ce9652185b85fdbac473a898409f3d5 /src/Text/Pandoc
parent136739b7ed6dbd4052be582febf4ff3beea32d87 (diff)
downloadpandoc-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 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Lua/Module/Utils.hs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Text/Pandoc/Lua/Module/Utils.hs b/src/Text/Pandoc/Lua/Module/Utils.hs
index 917f2e627..8bb185500 100644
--- a/src/Text/Pandoc/Lua/Module/Utils.hs
+++ b/src/Text/Pandoc/Lua/Module/Utils.hs
@@ -115,14 +115,6 @@ documentedModule = Module
<#> parameter peekAstElement "AST element" "elem" "some pandoc AST element"
=#> functionResult pushText "string" "stringified element"
- , defun "text"
- ### liftPure (B.toList . B.text)
- <#> parameter peekText "string" "words" "markup-less inlines text"
- =#> functionResult pushInlines "Inlines" "list of inline elements"
- #? ("Converts a string to `Inlines`, treating interword spaces as " <>
- "`Space`s or `SoftBreak`s. If you want a `Str` with literal " <>
- "spaces, use `pandoc.Str`.")
-
, defun "from_simple_table"
### from_simple_table
<#> parameter peekSimpleTable "SimpleTable" "simple_tbl" ""