The functions htmlAddStyle and htmlAlignmentToString are moved from Writers/HTML.hs, where they were called 'addStyle' and 'alignmentToString' respectively.
The function htmlAttrs is split off from tagWithAttrs in Writers/Shared.hs. It creates a representation of an Attr object, as one would see in a tagWithAttrs (but without the tag)
...and font family in default inline css. Closes#8423
(see comments there for motivation). `mainfont`, `fontsize`,
and `linestretch` can still be used as before; the only difference
is that we no longer provide opinionated defaults.
This commit also adds a `maxwidth` variable that sets `max-width`;
if not set, 36em is used as a default.
Previously we had to work around a cabal-install bug that caused
`-Werror` to react to dependencies as well as local packages,
but this is fixed in cabal 3.8.1.0. There are some cases in which
building dependencies only doesn't work (see #8084).
This module provides functions to split Pandoc documents into
chunks to be rendered in separate files, e.g. one per section.
Internal identifiers are rewritten appropriately to point to
the new locations.
See #6122.
We now export `toTOCTree` and `SecInfo`, which provide a more neutral
way of generating TOC information from Blocks, and we use these in
`toTableOfContents`.
This is desirable because some output formats may require a TOC
structure that isn't just a rendered pandoc list.
Previous versions of the documentation did not clarify much which
options of font selection are available for the generation of .pdf
via `-t ms`. Nor was there a description how to extend the set of
of fonts provided by ghostscript/pdfgroff. This commit equally
hints to Peter Schaffter's script install-fonts.sh to facilitate
greatly the later, too.
They now return `Either OptInfo Opt`.
Add `OptInfo` type.
Add `handleOptInfo` function. This performs the IO actions for
things like `--version` that were previously done in `parseOptionsFromArgs`.
An argument for a `ScriptingEngine` has been added, to facilitate
printing custom templates and custom extensions for Lua filters.
(However, at this stage nothing is yet done with it.)
[API change]