aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-12-11Update changelog.John MacFarlane2-0/+64
2019-12-11Bump version to 2.9 because of API change in Templates, Class.John MacFarlane1-1/+1
2019-12-11Improved template API and fixed a bug. Closes #5979.John MacFarlane3-43/+65
* 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.
2019-12-11ConTeXt template: Adjustments to title formatting (#5949)Denis Maier2-7/+7
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.
2019-12-11Add title-slide-attributes variable to reveal.js template. (#5981)Frederik Elwert2-1/+12
2019-12-10Fix README.md so that relative links from manual become absolute.John MacFarlane2-16/+26
Previously they'd be broken links when viewed on GitHub or Hackage. So we add the base URL for the pandoc manual.
2019-12-09More informative JSON parse error.John MacFarlane1-1/+1
Closes #5973.
2019-12-08Use external emojis package.John MacFarlane7-10416/+10
Moved the emoji-specified code into an external package we can depend on.
2019-12-07Fix regression in `makeSections`.John MacFarlane0-0/+0
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.
2019-12-07Fix --toc-depth regression in 2.8.John MacFarlane1-6/+6
Closes #5967.
2019-12-07Fix --toc-depth regression in 2.8.John MacFarlane2-3/+18
Closes #5967.
2019-12-07Use doctemplates 0.8.John MacFarlane2-3/+3
2019-12-07Rename template 'filters' as 'pipes'John MacFarlane1-6/+6
to avoid confusion with the other notion of filter used by pandoc. We may want to rename this upstream in doctemplates as well.
2019-12-07Removed trailing whitespace in manual.John MacFarlane1-5/+5
2019-12-07Document display math syntax in manual.John MacFarlane1-0/+3
2019-12-05Slight tweak to RELEASE_CHECKLISTJohn MacFarlane1-1/+2
2019-12-05Update manual date and man page.John MacFarlane2-15/+31
2019-12-05Update changelogJohn MacFarlane1-0/+54
2019-12-05Makefile - fix emoji.json pathJohn MacFarlane1-1/+1
2019-12-05Bump to 2.8.1John MacFarlane1-1/+1
2019-12-05Avoid deprecation warning for minimumDef using CPP.John MacFarlane1-1/+6
2019-12-05Keep the \author{} command even if author is not specified (#5961)Yihui Xie4-2/+3
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.
2019-12-05Clean up manual on pdf generation backend options.John MacFarlane1-13/+22
See #5940.
2019-12-05Roll back part of of `--shift-heading-level-by` change.John MacFarlane3-15/+9
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.
2019-12-05Update release checklist to include code signing step.John MacFarlane1-1/+2
This will address #5950.
2019-12-05HTML-based templates: Add CSS to suppress bullet on unordered task lists.John MacFarlane8-0/+8
2019-12-05HTML writer: add task-list class to ul if all elements are task list items.John MacFarlane2-5/+14
This will allow styling unordered task lists in a way that omits the bullet.
2019-12-05Fix makeSections so it doesn't turn column divs into sections.John MacFarlane2-1/+31
2019-12-04Fix regression with behavior of --variable.John MacFarlane1-2/+8
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.
2019-12-03Move data/emoji.json to emoji.json, add to extra-source-files.John MacFarlane4-2/+4
This doesn't really belong in data-files as it's not loaded dynamically.
2019-11-30ci: remove quotes around --hide-successes.John MacFarlane1-2/+2
These seem to cause problems in windows.
2019-11-30Don't use --test-option with cabal.John MacFarlane1-1/+1
It's only supported in later versions, apparently.
2019-11-30Try --test-options with cabal.John MacFarlane1-1/+1
--test-option seems not to work (though it works with cabal 3+).
2019-11-30Hide successes in CI tests.John MacFarlane1-3/+3
This makes it easier to spot failures.
2019-11-29Improve Makefile for signing windows release candidates.John MacFarlane1-3/+8
2019-11-29Add Makefile to windows release-candidate build.John MacFarlane2-2/+8
Running 'make' in this directory will do the code signing of the msi.
2019-11-29Add `ascii_identifiers` as a supported extension for `markdown`.John MacFarlane1-27/+25
This fixes a regression in 2.8.
2019-11-29Update default.context (#5946)Denis Maier1-8/+6
Fix `\startcslreferences`: - The old version had a too large skip at the beginning of the reference list => fixed that. - Change syntax to ConTeXt conventions
2019-11-27Use `[|..|]` syntax to simplify Emoji.TH.John MacFarlane1-6/+6
2019-11-27Revert "Don't do parallel build with cabal."John MacFarlane1-2/+2
This reverts commit bd175d13b6004086ccd3862822f97c7f090cadb4.
2019-11-27Remove redundant import.John MacFarlane1-1/+0
2019-11-27Generate Emoji module with TH.John MacFarlane7-1830/+10410
- 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.
2019-11-27Don't do parallel build with cabal.John MacFarlane1-2/+2
Hopefully this fixes the apparent OOM error on GitHub CI?
2019-11-27Increase GC allocation space for compilation in cabal.project.John MacFarlane2-3/+3
2019-11-27LaTeX writer - hlint.John MacFarlane1-29/+24
2019-11-27HTML writer: hlint improvements.John MacFarlane1-25/+22
2019-11-27Removed useless cpp for old versions of blaze.John MacFarlane1-14/+0
2019-11-27Removed unneeded pragma.John MacFarlane1-1/+0
2019-11-26Bump to 2.8.0.1 and update changelog and manual.John MacFarlane5-22/+45
2019-11-26Use skylighting 0.8.3.John MacFarlane2-4/+4