diff options
| author | Albert Krewinkel <albert@zeitkraut.de> | 2022-10-07 21:37:57 +0200 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-10-10 09:39:18 -0700 |
| commit | a088cbf5637596a461ba9f99b49210235d6c0a68 (patch) | |
| tree | d4703d158cf07e4dd45b96fff16166d5ea9abf31 /pandoc-lua-engine/pandoc-lua-engine.cabal | |
| parent | e1e07cce65a0bb007da934245e74be1b1c8a0f6e (diff) | |
Lua: support extensions in custom writers
Custom writers can define the extensions that they support via the
global `writer_extensions`. The variable's value must be a table with
all supported extensions as keys, and their default status as values.
E.g., the below specifies that the writer support the extensions `smart`
and `sourcepos`, but only the `smart` extension is enabled by default:
writer_extensions = {
smart = true,
sourcepos = false,
}
Diffstat (limited to 'pandoc-lua-engine/pandoc-lua-engine.cabal')
| -rw-r--r-- | pandoc-lua-engine/pandoc-lua-engine.cabal | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pandoc-lua-engine/pandoc-lua-engine.cabal b/pandoc-lua-engine/pandoc-lua-engine.cabal index a122b935c..3c632026b 100644 --- a/pandoc-lua-engine/pandoc-lua-engine.cabal +++ b/pandoc-lua-engine/pandoc-lua-engine.cabal @@ -22,6 +22,7 @@ extra-source-files: README.md , test/bytestring.bin , test/bytestring.lua , test/bytestring-reader.lua + , test/extensions.lua , test/lua/*.lua , test/lua/module/*.lua , test/lua/module/partial.test @@ -66,7 +67,7 @@ library , Text.Pandoc.Lua.Init , Text.Pandoc.Lua.Marshal.CommonState , Text.Pandoc.Lua.Marshal.Context - , Text.Pandoc.Lua.Marshal.Extensions + , Text.Pandoc.Lua.Marshal.Format , Text.Pandoc.Lua.Marshal.PandocError , Text.Pandoc.Lua.Marshal.ReaderOptions , Text.Pandoc.Lua.Marshal.Reference |
