From b990ca3c4cadf0da0d17a71809cf0a87c67eb175 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 27 Oct 2021 20:56:30 +0200 Subject: Lua: fix `pandoc.utils.stringify` regression The `pandoc.utils.stringify` function returned empty strings when called with a string argument. --- src/Text/Pandoc/Lua/Module/Utils.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') 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. -- cgit v1.2.3