John MacFarlane
2d9d779fbe
linux CI: use ppa to install older ghc/cabal versions.
2020-06-15 10:02:31 -07:00
John MacFarlane
aa9bcce4f9
Bump jira-wiki-markup in stack.yaml.
2020-06-14 23:38:41 -07:00
John MacFarlane
368360e005
Linux CI: use cabal 3.2 for everything.
...
The ubuntu images no longer contain older cabal versions, it
semes.
2020-06-14 23:37:21 -07:00
John MacFarlane
43787143d2
CI: use ubuntu-18.04 instead of 20.04.
2020-06-14 16:45:01 -07:00
John MacFarlane
c449788440
CI: use cabal 3.2, also specify OS versions instead of 'latest.'
2020-06-14 16:41:12 -07:00
Mathieu Boespflug
bbf04df900
Docbook reader: implement <procedure> ( #6442 )
...
A `<procedure>` contains a sequence of `<step>`'s, or `<substeps>`
that themselves contain `<step>`'s.
2020-06-14 10:45:52 -07:00
Mathieu Boespflug
89bbe76ace
Docbook reader: implement <phrase> ( #6438 )
...
A `<phrase>` has no semantic meaning. It is only useful to hang an
`id` or other attributes around a piece of text.
2020-06-14 10:45:19 -07:00
Mathieu Boespflug
390bd51fdc
Docbook reader: treat envar and systemitem like code ( #6435 )
2020-06-14 10:44:22 -07:00
Mathieu Boespflug
e321843f32
Docbook: implement <replaceable> ( #6437 )
...
A `<replaceable>` is a placeholder that a user is instructed to
replace with a value of their own, like
`<replaceable>prefix</replacable>/bin/foo`. In the standard Docbook
toolchain, this typically appears emphasized, and no other adornement.
But a `<replaceable>` is nearly always in a code element, where
emphasis won't work. So we do the same thing as for `<optional>`:
decorate the content with brackets.
2020-06-14 10:43:53 -07:00
Mathieu Boespflug
12a35dd0d0
Docbook: map <simplesect> to unnumbered section ( #6436 )
...
A <simplesect> is a section like any other, except that it never
contains an subsection, and is typically rendered unnumbered.
2020-06-14 10:40:00 -07:00
Frederik Elwert
7716caaf2a
Make polyglossia package options list-aware in the LaTeX template. ( #6444 )
2020-06-14 10:38:02 -07:00
John MacFarlane
f699d64a1a
Switch CI to use ghc 8.8.3.
...
This should fix CI failures.
2020-06-14 10:06:21 -07:00
dbecher-ito
a0559d952b
Distinguish between single and double quotes when using enquote package ( #6457 )
2020-06-14 10:02:17 -07:00
Albert Krewinkel
16889a01b9
Jira reader: require jira-wiki-markup 1.3.1 or later
...
This solves the following problems of the Jira reader:
* Two consecutive markup chars are now parsed verbatim; styled text
must not be empty.
* Styled text may not contain newlines.
* Links to anchors are now parsed as links.
Fixes : #6343
Fixes : #6325
Fixes : #6407
2020-06-14 11:46:59 +02:00
John MacFarlane
eacd17c867
nightly: add ls statements to diagnose linux build failure.
2020-06-13 11:43:49 -07:00
John MacFarlane
fa6ffcaf02
Textile reader: support "pre." for code blocks.
...
Cloess #6454 .
2020-06-13 10:59:02 -07:00
John MacFarlane
de4fb05dcc
Ipynb reader: handle application/pdf output as image.
...
Closes #6430 .
2020-06-09 09:47:26 -07:00
John MacFarlane
8d07940828
Ipynb reader: properly handle image/svg+xml as an image.
...
Partially addresses #6430 .
2020-06-09 09:41:34 -07:00
Mo
a71278b83e
doc: fix FreeBSD port link ( #6422 )
...
The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
The old pandoc port is still at version 1.5.1.1
2020-06-07 17:34:14 -07:00
Mathieu Boespflug
9d076ed7ea
Make it possible to compile using Stack on NixOS ( #6439 )
...
On NixOS, it is necessary to compile with `stack --nix`. It is
furthermore necessary to provide zlib headers when `--nix` is enabled.
2020-06-07 17:32:16 -07:00
John MacFarlane
7c6dbd37eb
Change default revealjs-url to use CDN version of revealjs v4.
...
See #6408 .
2020-05-30 12:10:27 -07:00
Lucas Escot
de0df52998
Fixed Katex standalone script ( #6399 )
...
Global macros are now persistent when using the HTML Writer with the --katex
option.
2020-05-28 11:31:23 -07:00
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