aboutsummaryrefslogtreecommitdiff
path: root/data/creole.lua
AgeCommit message (Collapse)AuthorFilesLines
2021-12-11Custom reader: pass list of sources instead of concatenated textAlbert Krewinkel1-1/+1
The first argument passed to Lua `Reader` functions is no longer a plain string but a richer data structure. The structure can easily be converted to a string by applying `tostring`, but is also a list with elements that contain each the *text* and *name* of each input source as a property of the respective name. A small example is added to the custom reader documentation, showcasing its use in a reader that creates a syntax-highlighted code block for each source code file passed as input. Existing readers must be updated.
2021-11-08Remove some extra stuff from data/creole.lua.John MacFarlane1-7/+0
2021-11-07Replace old sample custom reader with a full-featured reader for creole.John MacFarlane1-0/+197
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.