aboutsummaryrefslogtreecommitdiff
path: root/doc/custom-readers.md
AgeCommit message (Collapse)AuthorFilesLines
2021-12-11Custom reader: ensure old Readers continue to workAlbert Krewinkel1-0/+7
Retry conversion by passing a string instead of sources when the `Reader` fails with a message that hints at an outdated function. A deprecation notice is reported in that case.
2021-12-11Custom reader: pass list of sources instead of concatenated textAlbert Krewinkel1-8/+47
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-29fix typo in custom-readers.md (#7722)Mauro Bieg1-1/+1
2021-11-23Simplify sample ris reader in doc/custom-readers.md.John MacFarlane1-22/+9
Made possible by #7712.
2021-11-22Add an example to custom-readers.md.John MacFarlane1-0/+52
2021-11-21Rename doc/custom-reader.lua to doc/custom-readers.mdAlbert Krewinkel1-0/+599