| Age | Commit message (Collapse) | Author |
|
Closes #11408.
|
|
Closes #10999.
This is now used to generate much of the Lua API documentation.
|
|
The function allows to run a callback with a modified pandoc state. This
provides the ability to temporarily modify the resource path, the user
data directory, and the HTTP request headers.
Closes: #10859
|
|
Closes #11111.
|
|
The globals hold the same values that are returned by `require 'lpeg'`
and `require 're'`, respectively. This was changed in pandoc 3.3.
|
|
The function generates element identifiers based on inlines content.
It's primary use case is the programmatic generation of ID, similar to
what the `auto_identifiers` extension provides for many formats.
|
|
The functions convert numbers and parentheses to superscript and
subscript, respectively.
|
|
- The `PANDOC_STATE` is no longer a userdata object, but a table that
behaves like the old object.
- Log messages in `PANDOC_STATE.log` are now in temporal order.
|
|
See #10995. Use the `Pandoc:walk` method instead.
|
|
The functions allows to check the existence of file-system objects.
|
|
This function performs a normalization of Pandoc documents. E.g.,
multiple successive spaces are collapsed, and tables are normalized such
that all rows and columns contain the same number of cells.
Closes: #10356
|
|
|
|
Functions that expect UTF-8-encoded filenames should make it easier to
write platform-independent scripts, as the encoding of the actual
filename depends on the system.
Additionally, this also adds a generalized method to run commands, and
functions to retrieve XDG directory names.
The new functions are `command`, `copy`, `read_file`, `remove`,
`rename`, `times`, `write_file`, `xdg`.
|
|
|
|
|
|
Pandoc now uses fewer spaces when outputting list items.
|
|
The function takes a MIME type and raw data from which it creates an
RFC 2397 data URI.
Closes: #10876
|
|
Key-value pairs, mapping from filename to contents, can be used to fill
the ersatz file system used in the reader sandbox.
|
|
The sandbox is now enabled if the fourth parameter is a list of files.
The files are read and then made available in the sandbox via a mock
file system.
|
|
The function `pandoc.read` is now taking an optional fourth parameter
that specifies the environment in which the parser will be run. Passing
the string `sandbox` as the argument causes the reader to run in a
sandbox, thereby preventing all access to the network and file system.
Closes: #10831
|
|
|
|
|
|
|
|
|
|
Closes #10523.
|
|
This was broken when the respective sections started to be
autogenerated.
|
|
|
|
List objects have a new function `iter` that returns an iterator
function that returns the next list item on each call.
|
|
|
|
It is now possible to return a single filter from a filter file, e.g.
``` lua
-- Switch single- and double quotes
return {
Quoted = function (q)
elem.quotetype = elem.quotetype == 'SingleQuote'
and 'DoubleQuote' or 'SingleQuote'
return elem
end
}
The filter must not contain numerical indexes, or it might be treated as
a list of filters.
|
|
The `Doc` values produced and handled by the `pandoc.layout` module can
now be styled using `bold`, `italic`, `underlined`, or `strikeout`. The
style is ignored in normal rendering, but becomes visible when rendering
to ANSI output. The `pandoc.layout.render` function now takes a third
parameter that defines the output style, either *plain* or *ansi*.
|
|
The module now comes with a method `:at(index[, def])` that allows to access
indices, accepts negative indices to count from the end, and will return the
`def` value as a default if the list has no item at the given position.
Furthermore, the list constructor `pandoc.List` now accepts iterators. E.g.,
`pandoc.List(text:gmatch '%S+')` returns the list of words in `text`.
Closes: #9835
|
|
The documentation system isn't powerful enough to generate the full
documentation automatically.
|
|
Documentation of math and quoting related functions and fields was
updated. The docs had been outdated since at least pandoc 2.17.
|
|
|
|
|
|
|
|
The function allows to specify a template with the same argument value
that would be used with the `--template` command line parameter.
Closes: #9854
Co-authored-by: Carsten Gips <[email protected]>
|
|
|
|
The default is now to use a *copy* of the global environment when running a
filter; this ensures better separation when `run_lua_filter` is used multiple
times. A custom environment can be specified via the optional third parameter.
|
|
Fixes previous commit ad68ff34aeb78e26d98a593dfdaf6bc4933857fc.
|
|
|
|
|
|
|
|
This adds a `symlink` function to Entry objects, allowing to check if an
entry represents a symbolic link.
|
|
|
|
|
|
Update and fix docs for `pandoc.types.Version` and `pandoc.utils.type`.
|
|
The module provides basic querying functions for image properties.
|
|
Fix formatting of `pandoc.utils.type` usage entry
|