aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-09-16GitHub CI - take 2 on macos build.John MacFarlane1-6/+4
2019-09-16GitHub CI - add macos.John MacFarlane1-0/+20
2019-09-16GitHub CI - cleanup.John MacFarlane1-7/+0
2019-09-16GitHub CI - trigger build on workflow/haskell.yml change.John MacFarlane1-0/+1
2019-09-16GitHub CI: don't trigger build with doc changes.John MacFarlane1-1/+29
2019-09-16GitHub CI: comment out artifact uploading for now.John MacFarlane1-9/+16
2019-09-16Add note on --print-default-template explaining how to print partials.John MacFarlane1-0/+5
2019-09-16PDF: Fix test for Cygwin. See #5451.John MacFarlane1-2/+2
2019-09-16GitHub CI: fix finding of executables.John MacFarlane1-1/+1
2019-09-15GitHub CI - another attempt to install artifacts.John MacFarlane1-3/+3
2019-09-15GitHuB CI tweak. cabal v2-install doesn't respect --bindir?John MacFarlane1-2/+2
2019-09-15Fix syntax of cabal v2-install.John MacFarlane1-1/+1
2019-09-15More GH CI tweaks.John MacFarlane1-3/+3
2019-09-15GitHub CI: attempt to enable artifact.John MacFarlane1-0/+9
2019-09-15GitHuB CI: remove --disable-optimization and --fast.John MacFarlane1-5/+5
2019-09-15Tweak GitHub CI config.John MacFarlane1-1/+1
2019-09-15Lua filters: allow passing of HTML-like tables instead of Attr (#5750)Albert Krewinkel3-17/+129
Attr values can now be given as normal Lua tables; this can be used as a convenient alternative to define Attr values, instead of constructing values with `pandoc.Attr`. Identifiers are taken from the *id* field, classes must be given as space separated words in the *class* field. All remaining fields are included as misc attributes. With this change, the following lines now create equal elements: pandoc.Span('test', {id = 'test', class = 'a b', check = 1}) pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1})) This also works when using the *attr* setter: local span = pandoc.Span 'text' span.attr = {id = 'test', class = 'a b', check = 1} Furthermore, the *attributes* field of AST elements can now be a plain key-value table even when using the `attributes` accessor: local span = pandoc.Span 'test' span.attributes = {check = 1} -- works as expected now Closes: #5744
2019-09-15GitHuB CI: turn off optimizations.John MacFarlane1-4/+4
2019-09-15Added .gitattributes.John MacFarlane1-0/+1
This ensures that the golden files in `test/fb2/reader/` don't have newlines converted. This should fix a test failure on GitHub CI with Windows. Closes #5747.
2019-09-15Revert "FB2 reader test: better diagnostics on failure."John MacFarlane1-28/+1
This reverts commit c65af7d1a2f35cbfd1235df2960f7156d38e8f92.
2019-09-15FB2 reader test: better diagnostics on failure.John MacFarlane1-1/+28
2019-09-14Add chapter-title class to EPUB chapter title h1 elements.John MacFarlane1-3/+5
See #5269.
2019-09-14EPUB toChapters: don't treat "refs" Div specially.John MacFarlane1-1/+1
This should make toChapters work better if there are Divs around sections.
2019-09-14Github CI/windows: separate dependencies step.John MacFarlane1-1/+4
2019-09-14FB2 reader test: Another attempt to fix test failure on GitHub CI.John MacFarlane1-4/+5
2019-09-13Revert "FB2 reader test: filter CRs."John MacFarlane1-2/+2
This reverts commit e35147d715a737bb854e0c527243f77d970d1b86.
2019-09-13FB2 reader test: filter CRs.John MacFarlane1-2/+2
This may help with the test failure on GitHub CI. https://github.com/jgm/pandoc/commit/b59e6d03762becd5c9d767463ce7ba5062a1b4a0/checks
2019-09-13GitHuB CI: Try adding windows build.John MacFarlane1-1/+17
2019-09-13Fix setting path.John MacFarlane1-2/+3
2019-09-13GitHub CI - set path.John MacFarlane1-4/+12
2019-09-12GitHub CI - try sudoJohn MacFarlane1-1/+1
2019-09-12Revert "GitHub CI - try with stack."John MacFarlane1-3/+7
This reverts commit 4411af80627e8508abd1e06b121afaaea250b56e.
2019-09-12GitHub CI - try with stack.John MacFarlane1-7/+3
2019-09-12GitHUB CI: Try installing recent cabal.John MacFarlane1-4/+6
2019-09-12GitHub CI - use plain v1-cabal.John MacFarlane1-3/+3
2019-09-12GitHub CI: try 'cabal new-' instead of 'v2-'John MacFarlane1-3/+3
2019-09-12Add haskell.ymlJohn MacFarlane1-0/+18
Add GitHub CI file
2019-09-12Better message for PandocShouldNeverHappenError.John MacFarlane1-1/+3
2019-09-12Change exit codes.John MacFarlane2-6/+6
It's good practice not to use codes 1-2 for user errors. Also, we used 65 for two different errors. - PandocAppError was 1, is now 4 - PandocOptionError was 2, is now 6 - PandocMakePDFError was 65, is now 66
2019-09-12MANUAL: add section for exit codes.John MacFarlane1-0/+27
2019-09-10Add --shift-heading-level-by option.John MacFarlane6-7/+88
Deprecate --base-heading-level. The new option does everything the old one does, but also allows negative shifts. It also promotes the document metadata (if not null) to a level-1 heading with a +1 shift, and demotes an initial level-1 heading to document metadata with a -1 shift. This supports converting documents that use an initial level-1 heading for the document title. Closes #5615.
2019-09-10Pass value of --dpi to rsvg-convert...John MacFarlane1-11/+15
when converting SVG to PDF in the process of creating a PDF. Closes #5721.
2019-09-09LaTeX reader: Fix parsing of optional arguments that contain braced text.John MacFarlane2-4/+12
Closes #5740.
2019-09-08MANUAL: document some pptx limitations...John MacFarlane1-0/+5
in slide show section: - no incremental display (#5689) - no pause with `. . .` (#5701)
2019-09-08Add -L option as shortcut for --lua-filter.John MacFarlane2-2/+2
2019-09-08Org reader: modify handling of example blocks. (#5717)Brian Leung3-14/+103
* Org reader: allow the `-i` switch to ignore leading spaces. * Org reader: handle awkwardly-aligned code blocks within lists. Code blocks in Org lists must have their #+BEGIN_ aligned in a reasonable way, but their other components can be positioned otherwise.
2019-09-08Add to other-extensions field for use by cabal solver (#5728)Vanessa McHale1-0/+1
2019-09-08Replace Element and makeHierarchical with makeSections.John MacFarlane25-635/+479
Text.Pandoc.Shared: + Remove `Element` type [API change] + Remove `makeHierarchicalize` [API change] + Add `makeSections` [API change] + Export `deLink` [API change] Now that we have Divs, we can use them to represent the structure of sections, and we don't need a special Element type. `makeSections` reorganizes a block list, adding Divs with class `section` around sections, and adding numbering if needed. This change also fixes some longstanding issues recognizing section structure when the document contains Divs. Closes #3057, see also #997. All writers have been changed to use `makeSections`. Note that in the process we have reverted the change c1d058aeb1c6a331a2cc22786ffaab17f7118ccd made in response to #5168, which I'm not completely sure was a good idea. Lua modules have also been adjusted accordingly. Existing lua filters that use `hierarchicalize` will need to be rewritten to use `make_sections`.
2019-09-08Revert changes to hierarchicalizeWithIds.John MacFarlane2-77/+5
Revert "hierarchicalize: ensure that sections get ids..." This reverts commit 212406a61d027d85712705e626954e0486a2bc34. Revert "Improve detection of headings in Divs by hierarchicalize." This reverts commit 6e2cfd6c97b1b8657f1f3e2b66090a2c3ba8d887. Revert "Shared.hierarchicalize: improve handling of div and section structure." This reverts commit 345b33762eb4cc6d57d74c76c4757a6166ee5c13.
2019-09-08INSTALL instructions fix for libicu.John MacFarlane1-3/+4