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
John MacFarlane
2877ca70ec
Fix typo.
2020-04-17 11:02:47 -07:00
John MacFarlane
7accbd585e
Use main pandoc-types repository...
...
now that @despresc's changes have been merged.
2020-04-17 10:05:55 -07:00
John MacFarlane
906305de78
Merge pull request #6224 from despresc/better-tables
2020-04-17 10:04:39 -07:00
John MacFarlane
f0f3cc14be
Add CI build for ghc 8.10.1.
2020-04-17 09:51:43 -07:00
John MacFarlane
a9ef15bbd5
Revert 0e48a02 and dependency on base-noprelude...
...
which hasn't been updated for ghc 8.10.
See discussion at #6187 .
2020-04-17 09:50:55 -07:00
John MacFarlane
f623db1d85
Fix path for nightly linux build.
2020-04-17 07:37:22 -07:00
John MacFarlane
40397b5905
Shared: renderTags': use self-closing tag for col element.
...
Closes #6295 .
2020-04-16 22:26:00 -07:00
John MacFarlane
7ed61e0b81
ci: remove ghc 8.10.1 build for now.
...
This is block by base-noprelude.
2020-04-16 09:13:31 -07:00
John MacFarlane
d7cd612904
nightly: don't need to apt-get install. ci: test on ghc 8.10.1.
2020-04-16 08:54:42 -07:00
John MacFarlane
cc7e6d8280
nightly: ensure that ghc 8.8.1 is used for linux.
...
Previously it was using 8.10 which is suprisingly already installed.
2020-04-16 08:49:14 -07:00
despresc
d1521af8fb
Markdown reader: Remove unnecessary qualification
2020-04-15 23:03:22 -04:00
Albert Krewinkel
75d7e69532
Use custom pandoc-types repo with new table types
2020-04-15 23:03:22 -04:00
Albert Krewinkel
f1bd06eb4a
Lua: support new tables
2020-04-15 23:03:22 -04:00
despresc
2fc11f3b1e
Modify toLegacyTable to cut up cells, add tests
...
Now a cell with dimension (h, w) will be cut up into h*w cells of
dimension (1,1), all in the same grid position, with the upper-left
holding the original cell contents and the rest being empty.
2020-04-15 23:03:22 -04:00
despresc
c7814f31e1
Use the new builders, modify readers to preserve empty headers
...
The Builder.simpleTable now only adds a row to the TableHead when the
given header row is not null. This uncovered an inconsistency in the
readers: some would unconditionally emit a header filled with empty
cells, even if the header was not present. Now every reader has the
conditional behaviour. Only the XWiki writer depended on the header
row being always present; it now pads its head as necessary.
2020-04-15 23:03:22 -04:00
despresc
d368536a4e
Adapt to the removal of the RowSpan, ColSpan, RowHeadColumns accessors
2020-04-15 23:03:22 -04:00
despresc
4e34d366df
Adapt to the newest Table type, fix some previous adaptation issues
...
- Writers.Native is now adapted to the new Table type.
- Inline captions should now be conditionally wrapped in a Plain, not
a Para block.
- The toLegacyTable function now lives in Writers.Shared.
2020-04-15 23:03:22 -04:00
despresc
f8ce38975b
Remove the onlySimpleCellBodies function from Shared
2020-04-15 23:03:22 -04:00
despresc
7254a2ae0b
Implement the new Table type
2020-04-15 23:03:22 -04:00
Nikolay Yakimov
83c1ce1d77
Markdown Reader: Fix inline code in lists ( #6284 )
...
Closes #6284 .
Previously inline code containing list markers was sometimes parsed incorrectly.
2020-04-15 16:20:01 -07:00
John MacFarlane
b64ece76cb
nightly build: print ghc, cabal versions for diagnostics.
2020-04-15 10:41:47 -07:00
John MacFarlane
f429863271
Use ghc 8.8.1 for nightly linux build.
2020-04-15 09:43:18 -07:00
John MacFarlane
71c4857464
JATS reader: handle "label" element in section title.
...
Closes #6288 .
2020-04-15 09:23:04 -07:00
John MacFarlane
20c1c297b2
Improve linux CI caching.
2020-04-13 23:04:23 -07:00
Cédric Couralet
34775b4128
Add an option to disable certificate validation ( #6156 )
...
This commit adds the option `--no-check-certificate`, which disables certificate
checking when resources are fetched by HTTP.
Co-authored-by: Cécile Chemin <cecile.chemin@insee.fr>
Co-authored-by: Juliette Fourcot <juliette.fourcot@insee.fr>
2020-04-13 14:58:42 -07:00
John MacFarlane
21b1358a52
Whitespace change to cabal.project...
...
to invalidate cache.
2020-04-12 22:27:54 -07:00
John MacFarlane
58cd731e51
Require doctemplates 0.8.2.
2020-04-12 22:25:31 -07:00
John MacFarlane
c1f5f3fa67
Improve linux caching for ci.
2020-04-12 22:17:50 -07:00
John MacFarlane
acb542df98
Add caching to linux ci.
2020-04-12 21:53:38 -07:00