Age | Commit message (Collapse) | Author | Files | Lines |
|
* Text.Pandoc.Templates [API change]
+ Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
Wrapping these around an instance of `PandocMonad` gives
us different instances of `TemplateMonad`, with different
search behavior in retrieving partials.
To compile a template and limit partial search to pandoc's
data files, use `runWithDefaultPartials (compileTemplate ...)`.
To compile a template and allow partials to be found locally
(either on the file system or via HTTP, in the event that
the main template has an absolute URL), ue
`runWithPartials (compileTemplate ...)`.
+ Export `getTemplate`, which seeks a template locally,
or via HTTP if the template has an absolute URL, falling
back to the data files if not found.
+ Export `compileDefaultTemplate` -- does `getDefaultTemplate`
and compiles the result, raising an error on failure.
* Text.Pandoc.Class [API change]
+ Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
These were too limiting and caused a bug whereby a local
partial could be used even when the default template was requested.
We now rely on instances provided in the Templates module.
Text.Pandoc.App.OutputSettings
+ Simplify template retrieval code.
|
|
Added `\setupinterlinespace` to `title`, `subtitle`, `date` and `author` elements.
Otherwise longer titles that run over multiple lines will look squashed as
`\tfd` etc. won't adapt the line spacing to the font size.
|
|
|
|
Previously they'd be broken links when viewed on GitHub or Hackage.
So we add the base URL for the pandoc manual.
|
|
Closes #5973.
|
|
Moved the emoji-specified code into an external package
we can depend on.
|
|
Previously hierarchicalize (the ancestor of `makeSections`)
would put header attributes on the containing Div. In 2.8
this behavior changed, which broke some tools depending
on pandoc. Here we roll back this change, so that attributes
again migrate from the header to the containing Div when
`makeSections` is run. Note that attributes are retained
on the header as well (unlike before) -- with the exception
of the `id` attribute, which of course cannot be duplicated.
Note that this is an empty commit. The previous
commit, 8d0033111, was mistakenly recorded as an
amendment to the --toc-depth fix, so the commit message
for that is wrong; this message correctly describes
the change in 8d0033111.
Closes #5965.
|
|
Closes #5967.
|
|
Closes #5967.
|
|
|
|
to avoid confusion with the other notion of filter used by pandoc.
We may want to rename this upstream in doctemplates as well.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Otherwise there will be a LaTeX warning "No \author given" when the .tex file is compiled.
This does not affect spacing in the title block.
|
|
See #5940.
|
|
With positive heading shifts, starting in 2.8 this option caused
metadata titles to be removed and changed to regular headings.
This behavior is incompatible with the old behavior of
`--base-header-level` and breaks old workflows, so with this
commit we are rolling back this change.
Now, there is an asymmetry in positive and negative heading
level shifts:
+ With positive shifts, the metadata title stays the same and
does not get changed to a heading in the body.
+ With negative shifts, a heading can be converted into the
metadata title.
I think this is a desirable combination of features, despite
the asymmetry. One might, e.g., want to have a document
with level-1 section headigs, but render it to HTML with
level-2 headings, retaining the metadata title (which pandoc
will render as a level-1 heading with the default template).
Closes #5957.
Revises #5615.
|
|
This will address #5950.
|
|
|
|
This will allow styling unordered task lists in a way that omits
the bullet.
|
|
|
|
Previously -Vfoo=1 -Vfoo=2 would produce a list value for foo;
with 2.8 it produced just '2'. This commit restores the earlier
beahvior.
Closes #5962.
|
|
This doesn't really belong in data-files as it's not loaded
dynamically.
|
|
These seem to cause problems in windows.
|
|
It's only supported in later versions, apparently.
|
|
--test-option seems not to work (though it works with cabal 3+).
|
|
This makes it easier to spot failures.
|
|
|
|
Running 'make' in this directory will do the code signing of the msi.
|
|
This fixes a regression in 2.8.
|
|
Fix `\startcslreferences`:
- The old version had a too large skip at the beginning of the reference list => fixed that.
- Change syntax to ConTeXt conventions
|
|
|
|
This reverts commit bd175d13b6004086ccd3862822f97c7f090cadb4.
|
|
|
|
- Add Text.Pandoc.Emoji.TH.
- Replace long literal list in Text.Pandoc.Emoji with one-liner
generating it from data/emoji.json using TH.
- Add Makefile target to download data/emoji.json.
- Remove tools/emoji.hs.
|
|
Hopefully this fixes the apparent OOM error on GitHub CI?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Closes #5938.
|
|
Closes #5937.
|