Commit Graph
13554 Commits
Author SHA1 Message Date
Albert Krewinkel b2decdfd13 CI: bump tested GHC versions to 8.8.4 and 8.10.2
Besides being newer, GHC version 8.10.2 comes preinstalled on GitHub
Actions environments; using it slightly speeds up CI tests.
2020-09-20 22:57:51 +02:00
Albert Krewinkel 4b459b49ea CI: remove duplicate build step on macOS 2020-09-20 22:57:39 +02:00
Albert Krewinkel fbdc0b3ad4 cabal.project: disallow base16-bytestring-1.*
This is a temporary fix to work around a missing constraint in package
text-conversions. It should be removed once a new revision or new
version fixes the underlying issue.
2020-09-20 21:32:54 +02:00
John MacFarlane ce33a97ad4 cabal.project - use dev version of pandoc-citeproc. 2020-09-20 09:58:58 -07:00
John MacFarlane 00eb7543bf Use dev version of pandoc-citeproc. 2020-09-20 09:57:53 -07:00
Albert Krewinkel c9e7ccba6f pandoc.cabal: allow hslua 1.2 again
Sporadic test failures also happen with hslua-1.1.*, so there is no need
to exclude the newer version.

This reverts commit 315b5a4836.
2020-09-20 09:20:59 +02:00
John MacFarlane 26ed7fb4f9 Command line options: use normalizePath in more places.
See #5127.  It is now used everywhere a file argument can be used.

Closes #5127.
2020-09-19 22:35:50 -07:00
argent0 ba9bedef23 Asciidoctor images (#6671)
Support `Asciidoctor`'s block figures.

Closes #6538.
2020-09-19 18:22:52 -07:00
Mauro Bieg caa225ad82 Add CSS to default HTML template (#6601) 2020-09-19 16:13:50 -07:00
John MacFarlane d5a7abd47f Change deprecated Builder.isNull to null. 2020-09-19 16:00:22 -07:00
John MacFarlane 277ea0df3d stack.yaml - use latest texmath, commonmark-pandoc. 2020-09-19 11:16:10 -07:00
John MacFarlane 1dd9f8b654 Use released pandoc-types 1.22. 2020-09-19 09:58:16 -07:00
John MacFarlane a26ec96d89 LaTeX writer: fix spacing issue with list in definition list.
When a list occurs at the beginning of a definition list definition,
it can start on the same line as the label, which looks bad.

Fix that by starting such lists with an `\item[]`.
2020-09-15 17:59:03 -07:00
Christian Despres a2d343420f LaTeX reader: fix improper empty cell filtering (#6689) 2020-09-15 13:36:11 -07:00
John MacFarlane 6ef38e9ab3 Fix pandoc-templates target to include all partials. 2020-09-15 10:35:32 -07:00
John MacFarlane c41ec933de Use latest skylighting. 2020-09-14 11:05:14 -07:00
John MacFarlane aa3394af45 stack.yaml - use latest skylighting. 2020-09-14 10:28:08 -07:00
Albert Krewinkel 34151e8da8 HTML writer: support intermediate table headers
Closes: #6314
2020-09-13 23:23:11 +02:00
John MacFarlane 62948f3579 Delete obsolete MANUAL section on compact and loose lists.
This gives a rule that has been been superseded by
commit 47537d26db.

The section is concerned to explain a discrepancy with
original Markdown.pl and its test suite.  In the case
under consideration, Markdown.pl gave strange results
which pandoc corrected.  I think it's no longer worth
wasting space on this, as its behavior seems clearly wrong.
If we are going to comment on every edge case with
Markdown.pl, the manual will get too long.

Babelmark 2 shows that some of the older implementations
follow Markdown.pl -- PHP Markdown, Python Markdown,
redcarpet, discount.

https://johnmacfarlane.net/babelmark2/?normalize=1&text=%2B+++First%0A%2B+++Second%0A++++-+a%0A++++-+b%0A%0A%2B+Third%0A

Closes #6684.
2020-09-13 12:45:17 -07:00
Albert Krewinkel 8711640512 HTML writer: support attributes on all table elements
Add attributes to tbody and tr elements.
2020-09-13 20:26:06 +02:00
Christian Despres cae155b095 Fix hlint suggestions, update hlint.yaml (#6680)
* Fix hlint suggestions, update hlint.yaml

Most suggestions were redundant brackets. Some required
LambdaCase.

The .hlint.yaml file had a small typo, and didn't ignore camelCase
suggestions in certain modules.
2020-09-13 07:48:14 -07:00
Albert Krewinkel 2109ded710 MANUAL: fix position of attributes in header 2020-09-13 07:42:44 +02:00
Albert Krewinkel a400d0dc62 HTML writer: render table footers if present
Part of: #6314
2020-09-12 21:49:01 +02:00
Christian Despres 22babd5382 [API change] Rename Writers.Tables and its contents (#6679)
Writers.Tables is now Writers.AnnotatedTable. All of the types and
functions in it have had the "Ann" removed from them. Now it is
expected that the module be imported qualified.
2020-09-12 08:50:36 -07:00
Joseph C. Sible 6fda8cfa28 Use the original tail instead of deconstructing and reconstructing it (#6678) 2020-09-11 13:49:01 -07:00
Albert Krewinkel 315b5a4836 pandoc.cabal: disallow hslua 1.2
See #6674
2020-09-11 09:50:33 +02:00
Leonard Rosenthol 55e5ad2d8f Changed default link state to invisible (#6676) 2020-09-10 22:58:53 -07:00
John MacFarlane 623ce89e0e Improved uncertainty handling in slunitx. 2020-09-10 14:48:35 -07:00
John MacFarlane a03160fb0d LaTeX reader: support parenthesized uncertainties in siunitx. 2020-09-10 13:07:31 -07:00
Albert Krewinkel 9423b4b7d9 Support colspans and rowspans in HTML tables (#6644)
* HTML writer: add support for row headers, colspans, rowspans
* Add planet table tests

See #6312
2020-09-10 09:47:40 -07:00
John MacFarlane c2f1fadb2c CI: use cabal for macos builds. 2020-09-10 09:44:12 -07:00
Leonard Rosenthol ef4f514359 Implement support for internal document links in ICML (#6606)
Closes #5541.
2020-09-10 09:40:35 -07:00
Nils CarlsonandNils Carlson 96a0f3c7af docbook reader: Implement column span support for tables (#6492)
Implement column span support for tables in the DocBook reader.

Co-authored-by: Nils Carlson <nils.carlson@ludd.ltu.se>
2020-09-10 09:11:52 -07:00
Albert Krewinkel 9cad5499c4 Reader.LaTeX.hs: remove trailing whitespace 2020-09-08 10:33:49 +02:00
Christian Despres 10c6c411f9 Add Writers.Tables helper functions and types, add tests for those (#6655)
Add Writers.Tables helper functions and types, add tests for those

The Writers.Tables module contains an AnnTable type that is a pandoc
Table with added inferred information that should be enough for
writers (in particular the HTML writer) to operate on without having
to lay out the table themselves.

The toAnnTable and fromAnnTable functions in that module convert
between AnnTable and Table. In addition to producing an AnnTable with
coherent and well-formed annotations, the toAnnTable function also
normalizes its input Table like the table builder does.

Various tests ensure that toAnnTable normalizes tables exactly like
the table builder, and that its annotations are coherent.
2020-09-05 14:36:51 -07:00
John MacFarlane 3935c9c5c4 Insignificant whitespace change.
Try to expire cache for macOS CI.
2020-09-03 09:53:50 -07:00
John MacFarlane 0985e38977 CI/macOS: Fix stack invocations. 2020-09-03 09:46:59 -07:00
John MacFarlane 60910d5278 CI/macOs: Use setup-haskell to setup stack. 2020-09-03 09:42:28 -07:00
John MacFarlane a157e1a6e0 Support numrange, numlist for siunitx.
See #6658.
2020-09-02 17:00:13 -07:00
John MacFarlane 83f0acab47 Support some missing siunitx commands. 2020-09-02 16:49:10 -07:00
John MacFarlane 321658fe4d LaTeX reader: Support siunitx \ang.
See #6658.
2020-09-02 16:16:06 -07:00
John MacFarlane 16c44cd2a9 Skip opts for \si. 2020-09-02 16:01:32 -07:00
John MacFarlane e3e66ba47f LaTeX reader: support \si and improve other siunitx commands. 2020-09-02 15:44:36 -07:00
John MacFarlane 0a98648c1a LaTeX reader: support \num from siunitx. 2020-09-02 13:05:34 -07:00
John MacFarlane 529eb696dc LaTeX reader: Support squared, cubed, tothe in siunitx.
Closes #6657.
2020-09-02 11:06:26 -07:00
John MacFarlane 81fe8ebf36 LaTeX reader: Factored out siunitx stuff into separate module. 2020-09-02 10:10:55 -07:00
Albert Krewinkel 371a7ff34b Remove Circle CI badge, references
CI checks run on GitHub Actions now.
2020-09-01 12:00:38 +02:00
Albert Krewinkel 1b865aaddf stack.yaml: use skylighting 0.10 2020-08-31 22:44:00 +02:00
Albert Krewinkel 3c07b1d9b6 Fix tests for skylighting 0.10 2020-08-31 21:22:03 +02:00
John MacFarlane 613828e497 Use skylighting 0.10. 2020-08-30 22:54:36 -07:00