John MacFarlane
287a3fcc51
Allow http-client 0.7.
2020-05-28 11:25:01 -07:00
Nikolay Yakimov
52a73abfe4
[CI] broken commit message length test ( #6398 )
...
* [CI] Fix commit message length check
* [CI] Smarter commit message length check
* [CI] Fix commit message length check for new branches
* [CI] Output offending commits
2020-05-25 22:07:24 -07:00
Felix Yan
46cb70a30c
Allow aeson 1.5 ( #6400 )
...
Builds fine and all tests pass here.
2020-05-25 22:02:54 -07:00
John MacFarlane
fe000134a8
CI: another attempt to fix line-length check.
2020-05-25 09:50:17 -07:00
John MacFarlane
fdf34816a5
CI: Don't include merge commits when checking message length.
2020-05-25 09:26:16 -07:00
Albert Krewinkel
37ef57be51
lua-filters.md: use pandoc.system module in TikZ example
...
Showcase temporary directory handling with `with_temporary_directory`
and `with_working_directory`.
2020-05-25 09:10:26 +02:00
John MacFarlane
2aa0832320
Add commit message check to ci.yml workflow.
2020-05-21 14:38:14 -07:00
Salim B
1b3ce80347
update template for reveal.js 4.0.0 ( #6390 )
...
cf.
- https://github.com/hakimel/reveal.js/releases/tag/4.0.0
- https://revealjs.com/upgrading/
see also https://github.com/jgm/pandoc-templates/pull/13
2020-05-21 14:30:12 -07:00
John MacFarlane
e8283ed11e
Revert "Add action to check commit messages for line length."
...
This reverts commit 7902ac5256
.
2020-05-21 14:28:27 -07:00
John MacFarlane
4b5d2aa485
FB2 writer: properly handle cover-image containing spaces.
...
Closes #6391 .
2020-05-21 14:08:08 -07:00
John MacFarlane
7902ac5256
Add action to check commit messages for line length.
2020-05-21 10:02:28 -07:00
John MacFarlane
1e031ae63a
Allow tasty 1.3.x.
2020-05-21 09:57:24 -07:00
Salim B
18b815cdce
Update links to reveal.js documentation ( #6386 )
...
With the [release of reveal.js 4.0.0](https://github.com/hakimel/reveal.js/releases/tag/4.0.0 ), the documentation moved from the GitHub README to the dedicated website <https://revealjs.com/ >.
Note that there are [further adjustments](https://revealjs.com/upgrading/ ) to the [Pandoc template](https://github.com/jgm/pandoc-templates/blob/master/default.revealjs ) necessary in order to make Pandoc work with reveal.js 4.0.0.
2020-05-20 08:53:55 -07:00
John MacFarlane
f6dfacf9d6
Add "summary" to list of block-level HTML tags.
...
Closes #6385 . (The summary element needs to be the first
child of details and should not be enclosed by p tags.)
NOTE: you need to include a blank line before the closing
`</details>`, if you want the last part of the content to
be parsed as a paragraph.
2020-05-20 07:45:14 -07:00
John MacFarlane
311d4c9dfc
LaTeX reader: don't parse beyond \end{document}
.
...
This required some internal changes to `\subfile` handling.
Closes #6380 .
2020-05-19 15:17:00 -07:00
John MacFarlane
e2bc913c27
epub.css: wrap overlong lines in highlighted code blocks.
...
This fixes a problem in iBooks v2.4 with our earlier
horizontally scrolling code blocks. The problem seems to
be a bug in iBooks, not pandoc, but since iBooks is a major
target we're changing pandoc's default behavior so that
pandoc-produced epubs work on that platform.
Closes #6242 .
2020-05-18 22:58:33 -07:00
Lila
c04800305e
Propagate (DY)LD_LIBRARY_PATH in tests ( #6376 )
2020-05-18 22:46:14 -07:00
Lila
f4185fcef0
Use CSS in favor of <br> for display math ( #6372 )
...
Some CSS to ensure that display math is
displayed centered and on a new line is now included
in the default HTML-based templates; this may be
overridden if the user wants a different behavior.
2020-05-18 22:45:44 -07:00
Lila
57fa394eb0
Bump cabal-version to 2.2 ( #6377 )
...
In b3cfdc2c7
the license was changed to GPL-2.0-or-later which is an
SPDX expression, however cabal only interprets the license field as an
SPDX expression if cabal-version is 2.2 or later.
Starting with 2.2 cabal-version also has to be the first statement in
the .cabal file.
2020-05-18 14:29:43 -07:00
Albert Krewinkel
1d3a3a027a
Org writer: clean-up Div handling
2020-05-17 21:55:11 +02:00
John MacFarlane
5a20cc07dd
Docx writer: enable column and row bands for tables.
...
This change will not have any effect with the default style.
However, it enables users to use a style (via a reference.docx)
that turns on row and/or column bands.
Closes #6371 .
2020-05-16 15:50:59 -07:00
John MacFarlane
f11b8ff080
Add abstract and subtitle to opendocument template.
...
With prior changes, this closes #6369 .
2020-05-16 14:40:15 -07:00
John MacFarlane
bde3d7622d
OpenDocument writer: add custom-style "Abstract" in metadata abstract.
...
This ensures that the abstract is rendered with style Abstract.
2020-05-16 14:39:20 -07:00
John MacFarlane
cc7dcf2a92
ODT: clean up styles.
...
Add Abstract.
Change Author, Date to centered paragraphs with no character
styling.
2020-05-16 14:38:26 -07:00
John MacFarlane
a2ce28fa4d
OpenDocument/ODT writer: enable custom-style attribute on a Div.
...
This allows you to apply a custom style to contained paragraphs.
2020-05-16 14:37:33 -07:00
John MacFarlane
6082e73927
DocBook writer: add id of figure to enclosed image.
2020-05-14 21:23:47 -07:00
John MacFarlane
8c026d5ec0
Fix underline in RTF writer.
...
It should be `\ul` not `\pnul`.
2020-05-14 09:44:44 -07:00
Lila
b3cfdc2c7a
Correct license listed in cabal
...
`GPL-2` is interpreted as GPLv2 only, however the actual license is GPLv2 or later
2020-05-13 22:27:44 +02:00
John MacFarlane
be9e93d4ae
LaTeX writer: create hypertarget for links with identifier.
...
Closes #6360 .
2020-05-12 14:37:07 -07:00
John MacFarlane
46179d5b3e
Use latest skylighting.
...
This adds `aria-hidden="true"` to the empty a elements, which
helps people who use screen readers.
2020-05-12 14:37:07 -07:00
Albert Krewinkel
9c76c52e9b
Lua: fix regression in package searcher
...
This caused `require 'module'` to fail for third party packages.
Fixes : #6361
2020-05-12 17:10:30 +02:00
John MacFarlane
82eb4df284
Fix misleading note about image size conversions in MANUAL.
...
Closes #6353 .
2020-05-10 17:20:47 -07:00
John MacFarlane
8fc57664f8
Implement implicit_figures extension for commonmark reader.
...
Closes #6350 .
2020-05-08 07:56:54 -07:00
Jake Zimmerman
e7ac57d04c
Update revealjs template with newly available options ( #6347 )
...
I wanted to use an option and realized that the default pandoc template
didn't pass it through, so I went through and found all the options that
Reveal.js advertises but that Pandoc's template doesn't support.
<https://github.com/hakimel/reveal.js#configuration >
I also noticed that rollingLinks isn't a setting anymore, but it's fine
to keep it in the template because people might be using an old version
of Reveal.js (via `revealjs-url`) that still has this option.
2020-05-07 10:03:41 -07:00
John MacFarlane
83880b0dbc
Shared.makeSections: omit number attribute when unnumbered class...
...
...is present. Previously the attribute was included but given
an empty value, and this caused the table of contents creation
functions in T.P.Writers.Shared to think these items had numbers,
which meant that they were included in the TOC even if the `unlisted`
class was used.
Closes #6339 .
2020-05-05 14:31:48 -07:00
Joseph C. Sible
6fad52b057
Avoid unnecessary guard ( #6340 )
2020-05-05 08:46:35 -07:00
Joseph C. Sible
761fcc8cae
Remove unnecessary hlint ignores ( #6341 )
...
In modern hlint, the spurious parse errors are gone now that it no
longer uses HSE, and it's also smart enough to avoid the bad "Use =="
suggestions itself.
2020-05-05 08:45:32 -07:00
John MacFarlane
1918944c99
Add needed dependency to stack.yaml.
2020-05-04 23:01:42 -07:00
John MacFarlane
8d0c124e5f
Update dependency versions in stack.yaml.
2020-05-04 14:47:00 -07:00
John MacFarlane
d3ec53b3cc
Revert "Use lts-15.11 stack"
...
This reverts commit b78fb28898
.
2020-05-04 14:44:08 -07:00
John MacFarlane
de066cc7f6
Revert "Windows CI: try adding -fexternal-interpreter as ghc option."
...
This reverts commit 47bfcfb406
.
2020-05-04 14:34:56 -07:00
John MacFarlane
47bfcfb406
Windows CI: try adding -fexternal-interpreter as ghc option.
2020-05-04 12:17:38 -07:00
John MacFarlane
2662a60db2
Revert "Try downgrading HsYAML on stack to 0.2.0.0."
...
This reverts commit 32d5d6c80b
.
2020-05-04 12:14:38 -07:00
John MacFarlane
32d5d6c80b
Try downgrading HsYAML on stack to 0.2.0.0.
...
to deal with the access violation we get in CI windows:
https://github.com/jgm/pandoc/runs/643362477?check_suite_focus=true
2020-05-04 09:35:41 -07:00
John MacFarlane
9e5ccaca61
Revert "Use 'set __COMPAT_LAYER=' in Windows CI builds."
...
This reverts commit 030c23e049
.
2020-05-04 09:34:26 -07:00
John MacFarlane
680793803a
Fix mediawiki reader with gfm_auto_identifiers.
...
Previously the `-` was being replaced by `_`.
Closes #6335 .
2020-05-04 09:20:27 -07:00
John MacFarlane
030c23e049
Use 'set __COMPAT_LAYER=' in Windows CI builds.
...
It is suggested at
https://github.com/commercialhaskell/stack/issues/3765
that this may solve the "access violation" we're currently
getting on Windows CI with ghc 8.8.
2020-05-04 08:44:59 -07:00
John MacFarlane
5b7364d02f
Revert "Try using -fexternal-interpreter to avoid access violation on Windows CI."
...
This reverts commit 58115dd07f
.
2020-05-04 08:43:02 -07:00
John MacFarlane
58115dd07f
Try using -fexternal-interpreter to avoid access violation on Windows CI.
2020-05-03 23:39:32 -07:00
John MacFarlane
b78fb28898
Use lts-15.11 stack
2020-05-03 21:34:11 -07:00