John MacFarlane
44ef31b2ae
Another try at circleci config.
2019-03-27 09:02:40 -07:00
John MacFarlane
8358f6b94e
circleci config - don't use 'all' for cabal test.
2019-03-27 08:10:42 -07:00
John MacFarlane
2c3b8cd6d2
circleci - ensure that config doesn't change between build and test.
...
Print test output directly.
2019-03-27 07:31:15 -07:00
John MacFarlane
218565b229
circleci tweak - move up cabal v2-test.
2019-03-26 22:44:05 -07:00
John MacFarlane
d086a190d5
circleci - explicitly specify ghc version for cabal builds.
2019-03-26 22:25:44 -07:00
John MacFarlane
542272a52a
JATS writer: Ensure that plain strings go inside <pub-id>
tag.
...
See #5397 .
2019-03-26 21:43:59 -07:00
John MacFarlane
30a5099783
circleci - set path to use installed ghc.
2019-03-26 21:35:24 -07:00
John MacFarlane
8b22326b0d
Fixed typo in circleci config.
2019-03-26 21:01:51 -07:00
John MacFarlane
825ca61e60
more circleci diagnostics
2019-03-26 14:14:01 -07:00
John MacFarlane
7bd32d70a6
circleci tweaks - mostly diagnostic.
2019-03-26 13:56:49 -07:00
John MacFarlane
af7486cc6d
circleci: explicitly specify ghc version to use.
2019-03-26 11:39:41 -07:00
Andrew Dunning
c21db81efd
LaTeX template: Add pandoc to PDF metadata ( #5388 )
...
Credits pandoc in content creator metadata (the default is 'LaTeX with hyperref').
2019-03-25 22:36:14 -06:00
John MacFarlane
dab896720c
circleci: fix typo.
2019-03-25 09:32:43 -07:00
John MacFarlane
06f2bb02ad
appveyor.yml - use ghc 8.6.4.
...
Hopefully this will fix segault issues on Windows.
See #5037 .
2019-03-25 08:58:44 -07:00
John MacFarlane
052684712b
HTML reader: read data-foo
attribute into foo
.
...
The HTML writer adds the `data-` prefix for HTML5
for nonstandard attributes. But the attributes are
represented in the AST without the `data-` prefix,
so we should strip this when reading HTML.
Closes #5392 .
2019-03-25 08:43:59 -07:00
Andrew Dunning
e91af0a8a3
LaTeX template: Group graphics-related code ( #5389 )
...
* LaTeX template: Group graphics-related code
The default figure placement was added in <f3ab4bc2b9
>; there does not appear to have been a reason for placing it at the end of the preamble.
* Update tests
2019-03-22 22:35:55 -06:00
John MacFarlane
1e60776226
LaTeX writer: Fix footnotes in table caption and cells.
...
This fixes a bug wherein footnotes appeared in the wrong
order, and with duplicate numbers, when in table captions
and cells.
We now use regular `\footnote` commands, even in the table
caption and the minipages containing cells. Apparently
longtable knows how to handle this.
Closes #5367 .
2019-03-22 11:55:41 -07:00
John MacFarlane
97acf152e0
fetchItem: don't treat UNC paths as protocol-relative URLs.
...
These are paths beginning `//?/UNC/...`. Closes #5127 .
2019-03-22 11:22:21 -07:00
Andrew Dunning
b3473df417
LaTeX template: Move \setstretch after front matter ( #5378 )
...
Ensures that `\maketitle`, `\tableofcontents`, and so forth are not affected by changes to line spacing. Closes #5179 by partially working around <https://github.com/reutenauer/polyglossia/issues/218 >.
2019-03-21 23:32:52 -06:00
richarddavis
567a43ace3
Improve pdfSize in ImageSize by ignoring all whitespace in /MediaBox command ( #5383 )
...
This fix ignores all whitespace in the PDF /MediaBox line so that a wider range of PDF sizes can be read. This improves fix to #4322 .
2019-03-21 10:43:56 -06:00
John MacFarlane
66e5f0ff8d
Docx writer: Use w:br without attributes for line breaks.
...
We previously added the attribute `type="textWrapping"`, but
this causes problems on Word Online.
Closes #5377 .
2019-03-21 09:28:16 -07:00
John MacFarlane
957314143f
Improve pdfSize in ImageSize.
...
Improves fix to #4322 .
2019-03-20 12:25:09 -07:00
John MacFarlane
6be8f4e953
Improved fix to #5340 and added test.
2019-03-18 16:53:36 -07:00
John MacFarlane
c57649956d
Improve autolink detection in LaTeX reader.
...
This determines whether `\url` or `\href` is used.
Closes #5340 .
2019-03-18 16:41:06 -07:00
John MacFarlane
3880a23de9
Properly escape attributes in Markdown writer.
...
Closes #5369 .
2019-03-17 18:15:47 -07:00
John MacFarlane
ebd7035a2a
Add test case for #5368 .
2019-03-17 18:02:59 -07:00
John MacFarlane
8632526fc2
Markdown writer: be sure implicit figures work in list contexts.
...
Previously they would sometimes not work: e.g., when they
occured in final paragraphs in lists that were originally
parsed as Plain and converted later using PlainToPara.
Closes #5368 .
2019-03-14 21:43:25 -07:00
John MacFarlane
16bf907252
Remove clone of pandoc-citeproc.
...
It wasn't being used; cabal.project specifies the version to use.
Closes #5366 .
2019-03-14 10:11:11 -07:00
John MacFarlane
cdad322a98
Use cmark-gfm-0.1.8.
2019-03-13 21:16:51 -07:00
John MacFarlane
838dc8a4cc
Update changelog
2019-03-13 21:07:56 -07:00
John MacFarlane
3862565132
Update manual date and man page.
2019-03-13 20:59:25 -07:00
John MacFarlane
1749a5924b
Updated tested-with.
2019-03-13 20:58:54 -07:00
John MacFarlane
28394f8d8c
Bump to 2.7.1
2019-03-13 20:57:58 -07:00
John MacFarlane
68c449591e
Update AUTHORS
2019-03-13 20:57:41 -07:00
John MacFarlane
5b385d2e66
Tests.Old: specify --data-dir=../data.
...
Remove old pandoc_datadir environment variable, which
doesn't do anything.
2019-03-13 17:44:07 -07:00
Andrew Dunning
bbe2da390e
LaTeX template: Improve readability ( #5363 )
...
+ LaTeX template: Improve template readability
Use `hidelinks` option for hyperref, which has the same effect as `pdfborder={0 0 0}`,
but its purpose is clearer. Use a simpler conditional for Polyglossia/Babel. Format
comments more consistently.
+ Update tests
+ Remove hyperref breaklinks option. According to the documentation, hyperref
sets this automatically as appropriate to the driver.
2019-03-13 18:22:28 -06:00
Andrew Dunning
8d58c61702
LaTeX reader test: Allow compilation of file ( #5364 )
...
The test could not compile in LaTeX due to missing `setspace` package. Remove redundant packages.
2019-03-13 18:21:00 -06:00
John MacFarlane
514a729946
Revise last commit, adding an upper bound for cmark-gfm.
2019-03-13 15:51:41 -07:00
John MacFarlane
1e4bc70280
Exclude cmark-gfm-hs 0.1.7, which is buggy.
2019-03-13 15:48:40 -07:00
John MacFarlane
12e36ba827
Use latest pandoc-citeproc.
2019-03-12 23:27:45 -07:00
John MacFarlane
b7cbd7b8c9
docx writer: avoid extra copy of abstractNum and num elements...
...
...in numbering.xml. This caused pandoc-produced docx files to
be uneditable using Word Online.
The problem was that recent versions of reference.docx include
samples of various kinds of text, including lists. The
numering elements for these were getting copied over to
the new docx, where they clashed with the autogenerated
elements produced by pandoc. This didn't confuse Desktop
Word, but it did confuse Word Online.
Closes #5358 .
2019-03-11 22:09:21 -07:00
Paul Tilley
f7ebd5107d
LaTeX reader: support \underline
, \ul
, \uline
( #5359 )
...
These are parsed as a Span with class `underline`, as with other readers.
2019-03-10 13:31:25 -06:00
John MacFarlane
73c5b50042
ipynb reader: removed vestigial ReaderOptions param.
2019-03-10 12:29:28 -07:00
John MacFarlane
e405d7b532
Include execution output in ipynb test.
2019-03-09 16:53:53 -08:00
John MacFarlane
4810f300e1
Add recommendation to use raw_attribute
with ipynb.
...
See #5354 .
2019-03-09 16:53:29 -08:00
John MacFarlane
2476d5f284
ipynb reader: remove sensitivity to raw_html
, raw_tex
extensions.
...
We now include every output format. Pruning is handled by
`--ipynb-output=`.
2019-03-09 16:52:15 -08:00
John MacFarlane
00ec47b3f9
Markdown writer: improve handling of raw blocks/inline.
...
We now emit raw content using `raw_attribute` when no more
direct method is available.
2019-03-09 16:31:39 -08:00
John MacFarlane
3394d3835d
Makefile - remove --resolver from quick target.
2019-03-09 14:30:07 -08:00
John MacFarlane
873f342f11
Ipynb reader/writer: better handling of cell metadata.
...
We now handle even complex cell metadata in the Div's attributes.
Simple metadata fields are rendered as a plain string, and complex ones
as JSON.
2019-03-09 14:27:34 -08:00
John MacFarlane
bf4a164a6f
Allow -o/--output to be used with --print-*.
...
`--print-default-data-file`
`--print-highlighting-style`
`--print-default-template`
Note that `-o` must occur BEFORE the `--print*` command on the command line
(this is documented).
Closes #5357 .
2019-03-08 08:44:45 -08:00