| Age | Commit message (Collapse) | Author |
|
Closes #10999.
This is now used to generate much of the Lua API documentation.
|
|
|
|
Unknown or unsupported options now cause the `pandoc.with_state`
function to fail.
Closes: #11376
|
|
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
|
|
The `pandoc.readers` and `pandoc.writers` maps now have string values
instead of boolean values. The string signals the type of the
reader/writer, `"text"` for *TextReader*/*TextWriter* and `"bytestring"`
for *ByteStringReader*/*ByteStringWriter*.
Closes: #11367
|
|
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.
|
|
The functions allows to check the existence of file-system objects.
|
|
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`.
|
|
|
|
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
|
|
Elements of type Caption, Cell, TableHead, and TableFoot can now be
stringified.
Fixes: #10450
|
|
|
|
|
|
|
|
Pandoc already depends on `crypton-conntection`, and thus transitively
on `crypton`. The latter provides a vast variety of hashing algorithms
and makes the dependency on SHA unnecessary.
|
|
The documentation system isn't powerful enough to generate the full
documentation automatically.
|
|
|
|
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.
|
|
|
|
|
|
|
|
Update and fix docs for `pandoc.types.Version` and `pandoc.utils.type`.
|
|
|
|
The module provides basic querying functions for image properties.
|
|
Fixed a bug that could lead to an un-catchable error and program
termination when `pandoc.read` was called with invalid UTF-8 input.
Fixes: #9385
|
|
|
|
* 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.
|
|
|
|
|
|
Ensures that objects with nested AST elements can be encoded as JSON.
|
|
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.
|
|
The documentation in the Haskell sources has been updated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The function returns the CPU time consumed by pandoc and can be used to
benchmark Lua computations.
|
|
Closes: #8605
|
|
Otherwise sections are always numbered in the TOC,
even if `--number-sections` is not used.
|
|
This simplifies the creation of custom readers and writers that are
based on built-in formats.
|