aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Lua
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-10-27 20:56:30 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2021-10-27 20:56:30 +0200
commitb990ca3c4cadf0da0d17a71809cf0a87c67eb175 (patch)
tree6b358df935822c379de7de9727a3a9502baf897f /src/Text/Pandoc/Lua
parent2910f9f3f856552b33ada842e3eb485717db100a (diff)
downloadpandoc-b990ca3c4cadf0da0d17a71809cf0a87c67eb175.tar.gz
Lua: fix `pandoc.utils.stringify` regression
The `pandoc.utils.stringify` function returned empty strings when called with a string argument.
Diffstat (limited to 'src/Text/Pandoc/Lua')
-rw-r--r--src/Text/Pandoc/Lua/Module/Utils.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Lua/Module/Utils.hs b/src/Text/Pandoc/Lua/Module/Utils.hs
index f83c34af7..3602612cb 100644
--- a/src/Text/Pandoc/Lua/Module/Utils.hs
+++ b/src/Text/Pandoc/Lua/Module/Utils.hs
@@ -185,10 +185,10 @@ peekAstElement = retrieving "pandoc AST element" . choice
[ (fmap PandocElement . peekPandoc)
, (fmap InlineElement . peekInline)
, (fmap BlockElement . peekBlock)
+ , (fmap MetaValueElement . peekMetaValue)
, (fmap AttrElement . peekAttr)
, (fmap ListAttributesElement . peekListAttributes)
, (fmap MetaElement . peekMeta)
- , (fmap MetaValueElement . peekMetaValue)
]
-- | Converts an old/simple table into a normal table block element.