aboutsummaryrefslogtreecommitdiff
path: root/doc/custom-readers.md
AgeCommit message (Collapse)Author
6 daysFix a couple small documentation errors.HEADmainJohn MacFarlane
Closes #11408.
2023-02-12docs/custom-readers.md: Update JSON parsing exampleAlbert Krewinkel
The example now uses the built-in `pandoc.json` library to parse the API output.
2023-01-18doc/custom-reader.md: rewrite BytestringReader paragraphIlona Silverwood
2022-12-16Lua: allow table structure as format spec.Albert Krewinkel
This allows to pass structured values as format specifiers to `pandoc.write` and `pandoc.read`.
2022-10-25Lua: rename `reader_extensions`/`writer_extensions` globals...John MacFarlane
...as `Extensions`. Update documnetation. Include a custom extension in the documentation example. See #8390.
2022-10-12Lua: support extensions in custom readers.Albert Krewinkel
Like custom readers, like writers, can define the set of supported extensions by setting a global. E.g.: ``` lua reader_extensions = { smart = true, citations = false, } ```
2022-10-10Lua: support custom bytestring readers.Albert Krewinkel
2022-02-06Remove sample RIS custom reader (since we now have a native one).John MacFarlane
2022-01-16Fix pattern syntax in sample readability custom reader.John MacFarlane
2022-01-16Minor edits to new custom reader example.John MacFarlane
2022-01-16doc/custom-readers.lua: add example for "readable HTML."John MacFarlane
2021-12-11Custom reader: ensure old Readers continue to workAlbert Krewinkel
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 Krewinkel
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 Bieg
2021-11-23Simplify sample ris reader in doc/custom-readers.md.John MacFarlane
Made possible by #7712.
2021-11-22Add an example to custom-readers.md.John MacFarlane
2021-11-21Rename doc/custom-reader.lua to doc/custom-readers.mdAlbert Krewinkel