Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
The semigroup instance for doctemplates Context does a left-biased
union on the underlying Map. That means that if you union
`{a: 1}` and `{a: 2}`, you get `{a: 1}`. This commit causes
pandoc to do the operation in the opposite order, so that later
default files take precedence in the values they assign to
keys.
See #5988.
|
|
Use before and after includes rather than special template.
|
|
Metadata defaults can be given via the command line `--metadata-file`.
Adding raw format snippets is a common use case for Lua filters, so it
seems sensible to provide an example.
Thanks to @efx for proposing this filter.
Closes: pandoc/lua-filters#70
|
|
For some reason the bulid fails with alpine 3.11,
with a linker error finding -lz. See #6003.
It would be good to figure out how to make it work
with alpine 3.11.
|
|
|
|
This reverts commit 392c14311f5f48b0bfaa4e141c36ea2c365b90b1.
It didn't help.
|
|
For some reason ld can't find zlib in the latest build.
Maybe this will help?
|
|
having to do with makeSections.
|
|
to avoid a special failure case involving makeSections.
|
|
|
|
|
|
|
|
Starting with 2.8, `--number-sections` also had the
effect of `--section-divs`, even if `--section-divs` was
not specified.
|
|
Added glsl mime type for WebGL maps
|
|
We now say exactly how to work around the deprecation of this
option.
|
|
Pandoc's AST is translated into the Jira AST, which is then rendered by
the dedicated Jira printer.
The following improvements are included in this change:
- non-jira raw blocks are fully discarded instead of showing as blank
lines;
- table cells can contain multiple blocks;
- unnecessary blank lines are removed from the output;
- markup chars within words are properly surrounded by braces;
- preserving soft linebreaks via `--wrap=preserve` is supported.
Note that backslashes are rendered as HTML entities, as there appears no
alternative to produce a plain backslash if it is followed by markup.
This may cause problems when used with confluence, where rendering seems
to fail in this case.
Closes: #5926
|
|
Errors during parsing are now returned in full and no longer replaced by
a custom message.
|
|
Fixed a problem where words surrounded by colons could causing parse
failures in some cases when they occurred in headers.
Fixes: #5993
|
|
Closes: #5984
|
|
|
|
|
|
Closes #5556
|
|
|
|
|
|
|
|
|
|
This may fix #5997.
|
|
Closes #5987.
|
|
Closes #5986.
|
|
|
|
|
|
|
|
|
|
The table `#+NAME:` or `#+LABEL:` is added to the table's caption in the
form of an empty span with the label set as the span's ID.
Closes: #5984
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* 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.
|