aboutsummaryrefslogtreecommitdiff
path: root/data/reader.lua
AgeCommit message (Collapse)Author
2021-11-07Replace old sample custom reader with a full-featured reader for creole.John MacFarlane
This is better as an example. And it is faster than pandoc's regular creole parser, which shows that high-performance readers can be developed this way.
2021-11-06Pass ReaderOptions to custom readers as second parameter.John MacFarlane
2021-11-06Fuller sample custom reader.John MacFarlane
2021-11-05Add interface for custom readers written in Lua. (#7671)John MacFarlane
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.