diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-12-09 08:36:17 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-12-11 08:59:11 -0800 |
commit | e88224621de1a8f1be4ea7ad9bf05fe635ddc3cc (patch) | |
tree | 1d74be95383ce4e9064e71d6f6c0c828375c87ec /src/Text/Pandoc/Lua/Util.hs | |
parent | 83b5b79c0e4f073198b5af11b9e8a0a4471fcd41 (diff) | |
download | pandoc-e88224621de1a8f1be4ea7ad9bf05fe635ddc3cc.tar.gz |
Custom reader: ensure old Readers continue to work
Retry conversion by passing a string instead of sources when the
`Reader` fails with a message that hints at an outdated function. A
deprecation notice is reported in that case.
Diffstat (limited to 'src/Text/Pandoc/Lua/Util.hs')
-rw-r--r-- | src/Text/Pandoc/Lua/Util.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Lua/Util.hs b/src/Text/Pandoc/Lua/Util.hs index 6d67d340d..9c6f42b2b 100644 --- a/src/Text/Pandoc/Lua/Util.hs +++ b/src/Text/Pandoc/Lua/Util.hs @@ -13,6 +13,7 @@ Lua utility functions. module Text.Pandoc.Lua.Util ( addField , callWithTraceback + , pcallWithTraceback , dofileWithTraceback ) where |