diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-10-27 20:56:30 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-10-27 20:56:30 +0200 |
commit | b990ca3c4cadf0da0d17a71809cf0a87c67eb175 (patch) | |
tree | 6b358df935822c379de7de9727a3a9502baf897f /src | |
parent | 2910f9f3f856552b33ada842e3eb485717db100a (diff) | |
download | pandoc-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')
-rw-r--r-- | src/Text/Pandoc/Lua/Module/Utils.hs | 2 |
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. |