summaryrefslogtreecommitdiff
path: root/doc/lua-filters.md
AgeCommit message (Collapse)Author
2024-03-27Update lua-filters.md (#9611)Carlos Scheidegger
Fix formatting of `pandoc.utils.type` usage entry
2024-03-15Typos: remove repeated words (#9577)standstaff
Signed-off-by: standstaff <zhengxingru@yeah.net>
2023-08-25Lua filters documentation: remove reference to phrenology.John MacFarlane
Closes #9024.
2023-05-17doc/lua-filters: use full field name in example (#8857)Matt Dodson
Remove old `.c` alias that mimics the JSON representation: - Since 2.15ish, the lua structure no longer closely resembles that JSON representation - even if it did, introductory examples should be explicit. Using an undocumented alias creates ambiguity.
2023-04-20doc/lua-filters.md: fix copy-and-paste error (#8798)thron7
2023-04-05doc/lua-filters.md: fix wrong anchorToni Dietze
2023-03-30doc/lua-filter.md: Fix typos. (#8734)perro tuerto
2023-03-20T.P.Format: add new function `formatFromFilePaths` [API Change] (#8710)Albert Krewinkel
* T.P.Format: export `formatFromFilePaths` [API change] * Lua: add function `pandoc.format.from_path` * Update lua-filters.md * The old T.P.App.FormatHeuristics module has been removed. This is an alternative to #8693.
2023-03-20lua-filters: auto-generate docs for `pandoc.system` module.Albert Krewinkel
2023-03-20lua-filters: auto-generate docs for `pandoc.text` module.Albert Krewinkel
2023-03-20Lua: load text module as `pandoc.text`.Albert Krewinkel
This only affects the name in the Lua-internal documentation. It is still possible to load the modules via `require 'text'`, although this is deprecated.
2023-03-20lua-filters: Move docs from module `text` to `pandoc.text`Albert Krewinkel
The latter is easier to use and more consistent with the other modules.
2023-03-20lua-filters.md: Generate docs for pandoc.utilsAlbert Krewinkel
The documentation in the Haskell sources has been updated.
2023-03-19lua-filters.md: auto-generate docs for more modulesAlbert Krewinkel
2023-03-19Lua: add info on when functions became available in pandocAlbert Krewinkel
2023-03-19lua-filters.md: generate docs from Haskell for pandoc.structureAlbert Krewinkel
2023-03-19lua-filters.md: autogenerate parts of the Lua API docsAlbert Krewinkel
2023-03-18Lua: add pandoc.cli.repl functionAlbert Krewinkel
2023-03-10doc/lua-filters.md: improve docs for `pandoc.zip`.Albert Krewinkel
2023-02-18Doc: fix typo in run_json_filterMorgan Willcock
2023-02-14Lua: add new function pandoc.system.cputime.Albert Krewinkel
The function returns the CPU time consumed by pandoc and can be used to benchmark Lua computations.
2023-02-11Lua: add module `pandoc.json` to handle JSON encodingAlbert Krewinkel
Closes: #8605
2023-02-09Lua: add field `chunk_template` to WriterOptions objects [API change]Albert Krewinkel
The PathTemplate type exported from Text.Pandoc.Chunks is now an instance of the ToJSON and FromJSON classes. Closes: #8607
2023-02-07Fix typosMartin Joerg
2023-01-28doc/lua-filters.md: document 'Figure' type and constructorAlbert Krewinkel
2023-01-23Fix typoCarlos Scheidegger
`#types-chunkeddoc` -> `#type-chunkeddoc`
2023-01-18Lua: add function pandoc.format.extensions.Albert Krewinkel
This simplifies the creation of custom readers and writers that are based on built-in formats.
2023-01-16Lua: Add function `pandoc.mediabag.write`.Albert Krewinkel
Allows to write the complete mediabag or just a specific file to a given directory.
2023-01-15Lua: add module `pandoc.structure`.Albert Krewinkel
Adds support for table of contents and chunks handling. The function `make_sections` has been given a friendlier interface and was moved to the new module; the old `pandoc.utils.make_sections` has been deprecated.
2023-01-14Remove Null constructor from docsAlbert Krewinkel
2023-01-03Lua: add functions `pandoc.text.toencoding`, `pandoc.text.fromencoding`.Albert Krewinkel
Closes: #8512
2022-12-20Shared: use LineBreak as default block sep in blocksToInlinesAlbert Krewinkel
This change also affects the `pandoc.utils.blocks_to_inlines` Lua function. Closes: #8499
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-12-12Lua: add pandoc.cli moduleAlbert Krewinkel
Allow processing of CLI options in Lua.
2022-12-07Fix a tiny typo in lua-filters.mdTomBen
2022-12-08Shared: change defaultBlocksSeparator to PARAGRAPH SEPARATORAlbert Krewinkel
This Unicode char (U+2029) is intended as a semantic separator between paragraphs; it is cleaner and less intrusive than the pilcrow sign that we used before. This also changes the default `sep` value used in the `pandoc.utils.blocks_to_inlines` Lua function.
2022-12-03doc/lua-filters.md: add documentation for pandoc.formatAlbert Krewinkel
2022-10-21Lua: add pandoc.scaffolding.Writer (#8377)Albert Krewinkel
This can be used to reduce boilerplate in custom writers.
2022-10-20Lua: add new module `pandoc.zip`Albert Krewinkel
Allows to handle docx and epub files.
2022-10-12Lua: add function `pandoc.template.meta_to_context`.Albert Krewinkel
The functions converts Meta values to template contexts; the intended use is in combination with `pandoc.template.apply`.
2022-10-11Lua: add function `pandoc.template.apply`Albert Krewinkel
The new function applies a context, containing variable assignments, to a template.
2022-10-10doc/lua-filters.md: deprecate PANDOC_WRITER_OPTIONS in custom writersAlbert Krewinkel
2022-10-09doc/lua-filters.md: fix typosAlbert Krewinkel
2022-10-08Update Lua filter doc: modify Zerobrane instructions to use Lua 5.4 (#8353)Ian Max Andolina
2022-10-03doc/lua-filters.md: fix documentation of PANDOC_WRITER_OPTIONS.Albert Krewinkel
2022-10-03doc/lua-filters.md: document pandoc.write_classic.Albert Krewinkel
2022-08-21Fix typosluz paz
Found via `codespell -q 3 -S changelog.md -L bu,fo,ist,mke,multline,noes,ot,pard,pres,tabl,te,tothe`
2022-08-13Lua: add function `pandoc.utils.citeproc`Albert Krewinkel
The function runs the *citeproc* processor on a Pandoc document. Exposing this functionality to Lua allows to make citation processing part of a filter or writer, simplifies the creation of multiple bibliographies, and enables the use of varying citation styles in different parts of a document.
2022-07-15Lua: extend pandoc.system module. (#8184)Albert Krewinkel
The module now has the additional functions `list_directory`, `make_directory`, and `remove_directory`. This makes it easier to write cross-platform scripts that need to inspect or modify the file system.
2022-07-15lua-filters.md: Add link to @wlupton's logging.lua.John MacFarlane
Closes #8146.