Commit graph

13437 commits

Author SHA1 Message Date
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
andrebauer
97fe2ea16c
LaTeX Writer: Add support for customizable alignment of columns in beamer (#6331)
Add support for customizable alignment of columns in beamer.
Closes #4805, closes #4150.
2020-05-02 17:08:16 -07:00
Albert Krewinkel
0fafe9dd32
Lua filters: improve error messages for failing filters (#6332)
Print the Lua error properly instead of displaying their `show` string.
2020-05-02 16:12:42 -07:00
Jesse Rosenthal
9e7572da1f PowerPoint writer: write math input verbatim in speaker notes.
OMML in speaker notes would lead to corrupt PowerPoint output. We now
output the OMML verbatim as LaTeX in the speaker notes.

Closes #6301.
2020-04-30 10:12:52 -04:00
Vaibhav Sagar
9c2b659eeb
Support new Underline element in readers and writers (#6277)
Deprecate `underlineSpan` in Shared in favor of `Text.Pandoc.Builder.underline`.
2020-04-28 07:53:06 -07:00
John MacFarlane
8d09a92d97 Use latest pandoc-types master with underline addition. 2020-04-27 09:35:34 -07:00
John MacFarlane
3324412d72 Allow base64-bytestring 1.1. 2020-04-25 12:55:17 -07:00
Yihui Xie
032a04c050
Update the link to TinyTeX (#6318)
from https://yihui.name/tinytex to https://yihui.org/tinytex (the former will be automatically redirected to the latter)
2020-04-24 22:46:59 -07:00
John MacFarlane
f268ae3035 RST writer: properly handle images with same alt text.
Previously we created duplicate references for these
in rendering RST.  Closes #6194.
2020-04-24 16:54:52 -07:00
tom-audm
3e52c402d0
Manual: separate adjacent verbatim code blocks (#6307) 2020-04-23 18:07:03 -07:00
John MacFarlane
6baacb51bb AsciiDoc writer: add blank line after Div.
Closes #6308.
2020-04-22 23:04:43 -07:00
John MacFarlane
7f258cd359
Merge pull request #4573 from expipiplus1/haddock-links
Haddock Writer: Support Haddock tables
2020-04-20 09:13:14 -07:00
John MacFarlane
9b5e571b88 CI: be more selective about caching.
Only use the cache if stack.yaml or cabal.project hasn't changed.
2020-04-20 09:06:29 -07:00
Joe Hermaszewski
fd5994cc5e Haddock Writer: Support Haddock tables
See this PR on Haddock for details on the table format:
https://github.com/haskell/haddock/pull/718
2020-04-20 13:57:36 +08:00
John MacFarlane
aff2500d46 More fixes for round-trip tests of HTML reader.
We exclude tables that have default widths but non-simple
content, as these can't really round-trip.
2020-04-19 17:21:19 -07:00
John MacFarlane
64e84d8a3e Use dev version of pandoc-citeproc...
so we can use pandoc-types 1.21 with it.
2020-04-19 09:00:18 -07:00
John MacFarlane
61771e2c9b Use pandoc-types 1.21, new texmath. 2020-04-19 08:17:32 -07:00
John MacFarlane
6c17609398 Revert "Hide successes on cabal CI builds"
This reverts commit 671bb42c43.

It didn't work with some older cabal versions.
2020-04-18 21:04:24 -07:00
John MacFarlane
b77dfe5fcd CI: Don't cache .stack-work. 2020-04-18 21:02:06 -07:00
John MacFarlane
573214a06a Fixed round-trip HTML tests.
Exclude tables with cells with line breaks because they don't
currently round-trip.  (Table goes from being simple to having
explicit widths.)
2020-04-18 20:57:28 -07:00
John MacFarlane
671bb42c43 Hide successes on cabal CI builds 2020-04-18 18:15:04 -07:00
John MacFarlane
f0c6411ede Fix round-trip bug with HTML tables....
introduced by parsing of table attributes.  (The writer
always added a style with width, and we would get multiple
such styles through successive round trips.)
2020-04-18 12:06:41 -07:00
John MacFarlane
37cadd5a02 HTML reader: parse attributes into table attributes. 2020-04-18 10:52:56 -07:00
John MacFarlane
9a809d4d01 Markdown writer: avoid unnecessary escapes before intraword _
when `intraword_underscores` extension is enabled.
Closes #6296.
2020-04-17 22:42:21 -07:00
John MacFarlane
0d2b8e3fe1
Merge pull request #6211 from tarleb/lua-pandocerror
API change: create PandocLua type, use PandocError for exceptions
2020-04-17 18:02:25 -07:00
Albert Krewinkel
62cf21cbaa
API change: use new type PandocLua for all pandoc Lua operations
The new type `PandocLua` is an instance of the `PandocMonad` typeclass
and can thus be used in a way similar to `PandocIO`.
2020-04-17 23:05:44 +02:00
Albert Krewinkel
eceb8eaf47
Class: generalize PandocIO functions to MonadIO 2020-04-17 23:05:31 +02:00
John MacFarlane
8f40b4ba14 LaTeX reader: don't put surrounding Div around Table.
This reverts a change in the last release; the Div is
no longer needed, because we can now put the id right in
the Table's attributes.  However, writers may still need
to be modified to do something with the id in a Table
(e.g. create an anchor), so in the short term we may lose
the ability to link to tables in some writers.
2020-04-17 13:04:15 -07:00
Albert Krewinkel
fb54f3d679
API change: use PandocError for exceptions in Lua subsystem
The PandocError type is used throughout the Lua subsystem, all Lua
functions throw an exception of this type if an error occurs. The
`LuaException` type is removed and no longer exported from
`Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError` is
added to PandocError.
2020-04-17 21:52:48 +02:00