From fa838deefc6badc62b9ca4d93aba55e9fbd747ec Mon Sep 17 00:00:00 2001
From: Albert Krewinkel <albert@zeitkraut.de>
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
---
 src/Text/Pandoc/Lua/Module/Utils.hs | 8 --------
 1 file changed, 8 deletions(-)

(limited to 'src/Text/Pandoc/Lua/Module')

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" ""
-- 
cgit v1.2.3