summaryrefslogtreecommitdiff
path: root/doc
AgeCommit message (Collapse)Author
2022-06-06Lua: add function pandoc.mediabag.fill (#8104)Albert Krewinkel
The function allows to fill the mediabag with all images in a given document. Images that cannot be fetched are replaced with a Span containing the image description.
2022-04-04JATS template: allow multiple licenses to be given.Albert Krewinkel
The `license` metadata field can now be used to set the license of an article; a list can be used to add multiple license statements.
2022-04-02JATS template: allow multiple copyright statements, years, holdersAlbert Krewinkel
2022-03-30Lua: allow to pass Sources to pandoc.read (#8002)Albert Krewinkel
Sources, the data type passed to the `Reader` function in custom readers, are now accepted as input to `pandoc.read`.
2022-03-23doc/lua-filters.md: Fix typo (#7981)Mario Lang
2022-02-18Add faq on converting from latex + bibtex.John MacFarlane
2022-02-07Lua docs: fix typos, missing linksAlbert Krewinkel
2022-02-06Remove sample RIS custom reader (since we now have a native one).John MacFarlane
2022-02-06Custom writer: support new-style Writer function.Albert Krewinkel
2022-02-06Lua: add module `pandoc.layout` to format and layout textAlbert Krewinkel
2022-02-06docs/lua-filters.md: revert changes made in 31693674758Albert Krewinkel
Partially reverts 31693674758e83de2fedf8554c3787430f57ab8. The result is unpleasant, auto-generating module docs requires a different approach.
2022-02-05Lua docs: allow to auto-generate Lua module documentationsAlbert Krewinkel
No documentations are generated for now, this just adds the necessary code and auto-formats file `doc/lua-filters.md`.
2022-02-03doc/org.md: remove obsolete citations section.John MacFarlane
This mostly described citation formats we no longer support.
2022-01-30Fix identifier in lua-filters doc.John MacFarlane
2022-01-30lua-filters: put all parameters in code font.John MacFarlane
2022-01-25Add metadata file paragraph to Pandoc API doc (#7865)Even Brenden
2022-01-24Fix div position in faqs.John MacFarlane
2022-01-24Fix lua-filters documentation for table column widths.John MacFarlane
See #7864.
2022-01-22epub.doc: Update links to KindleGen (#7846)Benson Muite
KindleGen has been deprecated and we need to link to archived versions. Co-authored-by: Mauro Bieg <mb21@users.noreply.github.com>
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
2022-01-14Add FAQ on images in ipynb containers.John MacFarlane
Closes #7749.
2022-01-10doc/jats.md: link JATSMartin Fischer
2022-01-09Docs: document `fancy_lists` in doc/org.md (#7820)Lucas Viana
Document the changes introduced in #7812
2022-01-07Further improvements to doc/lua-filters.md.John MacFarlane
2022-01-07lua-filters.doc: use header attributes, not spans.John MacFarlane
2022-01-07lua-filters.doc: use headings instead of nested def lists.John MacFarlane
See #7807.
2022-01-04Lua: add `pandoc.template` moduleAlbert Krewinkel
The module provides a `compile` function to use strings as templates.
2022-01-04Lua: marshal templates as opaque userdata valuesAlbert Krewinkel
2022-01-04Lua: add `pandoc.WriterOptions` constructorAlbert Krewinkel
2022-01-04Lua: add function `pandoc.write`Albert Krewinkel
2022-01-02Lua writer: allow variables to be set via second return value of `Doc`Albert Krewinkel
New templates variables can be added by giving variable-value pairs as a second return value of the global function `Doc`. Example: function Doc (body, meta, vars) vars.date = vars.date or os.date '%B %e, %Y' return body, vars end Closes: #6731
2022-01-02doc/lua-filters.md: fix and improve documentationAlbert Krewinkel
2022-01-02Lua writer: provide global `PANDOC_WRITER_OPTIONS`Albert Krewinkel
Closes: #6731
2022-01-01Lua: provide global `PANDOC_WRITER_OPTIONS` [API change]Albert Krewinkel
API changes: - The function T.P.Filter.applyFilters now takes a filter environment of type `Environment`, instead of a ReaderOptions value. The `Environment` type is exported from `T.P.Filter` and allows to combine ReaderOptions and WriterOptions in a single value. - Global, exported from T.P.Lua, has a new type constructor `PANDOC_WRITER_OPTIONS`. Closes: #5221
2022-01-01Lua: marshal ReaderOptions field `extensions`, `track_changes` via JSONAlbert Krewinkel
Extensions are now available as a list of strings; the track-changes settings are given as the kebab-case representation used in JSON.
2021-12-31Lua: use global state when parsing documents in `pandoc.read`Albert Krewinkel
The function `pandoc.read` is updated to use the same state that was used while parsing the main input files. This ensures that log messages are preserved and that images embedded in the input are added to the mediabag.
2021-12-28doc/lua-filters.md: improve documentation of `make_sections`Albert Krewinkel
2021-12-23Lua: use released pandoc-lua-marshal-0.1.3.Albert Krewinkel
Inlines, Blocks, and List objects now have an `__eq` metamethod, testing equality by comparing two lists element-wise.
2021-12-23JATS templates: fix affiliation tagging in articleauthoring outputAlbert Krewinkel
Affiliations were `xlink`ed even in the articleauthoring tag set, but `<aff>` are not allowed as children of `contrib-group` elements in that tag set. Each affiliation must be listed directly in the contrib element.
2021-12-23JATS templates: add support for article subtitlesAlbert Krewinkel
2021-12-21Lua: simplify and deprecate function `pandoc.utils.equals`Albert Krewinkel
The function is no longer required for element comparisons; it is now an alias for the `==` operator.
2021-12-21Lua: add new library function `pandoc.utils.type`.Albert Krewinkel
The function behaves like the default `type` function from Lua's standard library, but is aware of pandoc userdata types. A typical use-case would be to determine the type of a metadata value.
2021-12-19doc/lua-filters: numbers are now accepted as MetaValueAlbert Krewinkel
2021-12-19Lua: change representation of TableHead, TableFoot, and Row values.Albert Krewinkel
The objects now also follow the principle that element attributes are accessible through the `.attr` field. Rows in `TableHead` and `TableFoot` are available via the `.rows` field. Row objects have a `.cells` field, containing the list of table cells. Closes: #7718
2021-12-17Lua: add function `pandoc.utils.references`Albert Krewinkel
List with all cited references of a document. Closes: #7752
2021-12-14doc/lua-filters.md: add docs for `Cell` constructorAlbert Krewinkel
2021-12-13doc/lua-filters.md: update description of walk methods, fix typosAlbert Krewinkel
2021-12-13Lua: support topdown traversalsAlbert Krewinkel
The traversal order of filters can now be selected by setting the key `traverse` of the filter to either `'topdown'` or `'typewise'`; the default remains `'typewise'`. Topdown traversals can be cut short by returning `false` as a second value from the filter function. No child-element of the returned element is processed in that case.