diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-11-05 22:10:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-05 22:10:29 -0700 |
commit | ee2f0021f9b59f0bca6eabf4884641da7a09e21d (patch) | |
tree | f29d5325d1d89c736093534d27b62c98a674df57 /pandoc.cabal | |
parent | bac6ae9607582233336984c30bba3c586eba6844 (diff) | |
download | pandoc-ee2f0021f9b59f0bca6eabf4884641da7a09e21d.tar.gz |
Add interface for custom readers written in Lua. (#7671)
New module Text.Pandoc.Readers.Custom, exporting
readCustom [API change].
Users can now do `-f myreader.lua` and pandoc will treat the
script myreader.lua as a custom reader, which parses an input
string to a pandoc AST, using the pandoc module defined for
Lua filters.
A sample custom reader can be found in data/reader.lua.
Closes #7669.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r-- | pandoc.cabal | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pandoc.cabal b/pandoc.cabal index 8911cdb1b..a86cc71a3 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -642,6 +642,7 @@ library Text.Pandoc.Readers.Ipynb, Text.Pandoc.Readers.CSV, Text.Pandoc.Readers.RTF, + Text.Pandoc.Readers.Custom, Text.Pandoc.Writers, Text.Pandoc.Writers.Native, Text.Pandoc.Writers.Docbook, |