aboutsummaryrefslogtreecommitdiff
path: root/pandoc-lua-engine/src
diff options
context:
space:
mode:
Diffstat (limited to 'pandoc-lua-engine/src')
-rw-r--r--pandoc-lua-engine/src/Text/Pandoc/Lua/Reader.hs2
-rw-r--r--pandoc-lua-engine/src/Text/Pandoc/Lua/Writer.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Reader.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Reader.hs
index 2c2dd369b..8e411aeb2 100644
--- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Reader.hs
+++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Reader.hs
@@ -48,7 +48,7 @@ readCustom luaFile = do
when (stat /= Lua.OK)
Lua.throwErrorAsException
- extsConf <- getglobal "reader_extensions" >>= \case
+ extsConf <- getglobal "Extensions" >>= \case
TypeNil -> pure $ ExtensionsConfig mempty mempty
_ -> forcePeek $ peekExtensionsConfig top `lastly` pop 1
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Writer.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Writer.hs
index eeec9b6af..e310b33c8 100644
--- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Writer.hs
+++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Writer.hs
@@ -61,7 +61,7 @@ writeCustom luaFile = do
let writerField = "Pandoc Writer function"
- extsConf <- rawgetglobal "writer_extensions" >>= \case
+ extsConf <- rawgetglobal "Extensions" >>= \case
TypeNil -> ExtensionsConfig mempty mempty <$ pop 1
_ -> forcePeek $ peekExtensionsConfig top `lastly` pop 1