diff options
| author | John MacFarlane <[email protected]> | 2022-10-25 10:16:34 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-10-25 10:17:23 -0700 |
| commit | 6e1cfa2af546029385eb8bf8049c08e7b8e16fe2 (patch) | |
| tree | 1065b9f3699106d60e192aa57d50669276988708 /pandoc-lua-engine/src | |
| parent | 119de20e60ecf40ce00f7d7206f7f87c7ad4c3c1 (diff) | |
Lua: rename `reader_extensions`/`writer_extensions` globals...
...as `Extensions`.
Update documnetation.
Include a custom extension in the documentation example.
See #8390.
Diffstat (limited to 'pandoc-lua-engine/src')
| -rw-r--r-- | pandoc-lua-engine/src/Text/Pandoc/Lua/Reader.hs | 2 | ||||
| -rw-r--r-- | pandoc-lua-engine/src/Text/Pandoc/Lua/Writer.hs | 2 |
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 |
