aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-03-28Shared - improve metaToJSON with numbers.John MacFarlane1-5/+8
We now do a better job marshalling numbers from MetaString OR MetaInlines into JSON Number.
2019-03-28Markdown writer: better rendering of numbers.John MacFarlane1-1/+4
If the number is integral, we render it as an integral not a float. Closes #5398.
2019-03-28Markdown writer: proper rendering of empty map in YAML metadata.John MacFarlane1-1/+3
Should be `{}` not empty string. Partially addresses #5398.
2019-03-28Use strict instead of lazy sum.John MacFarlane2-5/+5
sum is lazy; replace with `foldl' (+) 0` to avoid stack overflow in Text.Pandoc.Pretty with very long strings. Closes #5401.
2019-03-28Revert "appveyor - just build dependencies."John MacFarlane1-18/+18
This reverts commit f520c4dfbb1c63123a9a088d560d16dee8e0d686.
2019-03-28stack.yaml: remove RTS optionsJohn MacFarlane1-1/+1
2019-03-28appveyor - just build dependencies.John MacFarlane1-18/+18
This should build up our cache so we can build the whole thing.
2019-03-27appveyor - save cache on error.John MacFarlane1-0/+1
Hopefully this will allow new ghc builds to complete within 60 minutes, after a try or two.
2019-03-27ipynb writer: preserve nbformat_minor if it's given.John MacFarlane1-2/+10
This helps with round-tripping.
2019-03-27Writers.Shared.metaValueToJSON: use Number Values for integers.John MacFarlane1-4/+9
Pandoc's MetaValue doesn't have a distinguished number type, so numbers are put in MetaStrings. If the MetaString consists entirely of digits, we convert it to a Number. We should probably consider adding a MetaNumber constructor to MetaValue, for better round-tripping with JSON etc. This change aids round-tripping in ipynb metadata fields, like `toc_depth`.
2019-03-27ipynb reader: avoid introducing spurious `.0` on integers in metadata.John MacFarlane2-1/+5
2019-03-27circleci - drop test on ghc 7.10, add ghc 8.6.4.John MacFarlane1-10/+3
2019-03-27Drop support for ghc < 8.John MacFarlane5-18/+2
2019-03-27CONTRIBUTING: replace reference to travis with circleci.John MacFarlane1-2/+1
2019-03-27circleci: back to -j2.John MacFarlane1-3/+3
2019-03-27circleci: recognize both Warning: and warning:.John MacFarlane1-1/+1
2019-03-27circelci: try using -j1.John MacFarlane1-3/+3
2019-03-27Remove install step from make quick-cabal.John MacFarlane1-2/+0
2019-03-27Add ghc-options to cabal.project.John MacFarlane2-2/+4
2019-03-27Quote RTS options in stack.yaml.John MacFarlane1-1/+1
2019-03-27circleci config - remove GHC_OPTS.John MacFarlane1-5/+4
Build into stack.yaml and cabal.project.local instead.
2019-03-27Add nice default ghc options to stack.yaml.John MacFarlane1-1/+1
2019-03-27Another try at circleci config.John MacFarlane1-4/+4
2019-03-27circleci config - don't use 'all' for cabal test.John MacFarlane1-2/+2
2019-03-27circleci - ensure that config doesn't change between build and test.John MacFarlane1-3/+3
Print test output directly.
2019-03-26circleci tweak - move up cabal v2-test.John MacFarlane1-1/+1
2019-03-26circleci - explicitly specify ghc version for cabal builds.John MacFarlane1-4/+4
2019-03-26JATS writer: Ensure that plain strings go inside `<pub-id>` tag.John MacFarlane1-1/+9
See #5397.
2019-03-26circleci - set path to use installed ghc.John MacFarlane1-6/+1
2019-03-26Fixed typo in circleci config.John MacFarlane1-1/+1
2019-03-26more circleci diagnosticsJohn MacFarlane1-1/+4
2019-03-26circleci tweaks - mostly diagnostic.John MacFarlane1-20/+25
2019-03-26circleci: explicitly specify ghc version to use.John MacFarlane1-5/+7
2019-03-25LaTeX template: Add pandoc to PDF metadata (#5388)Andrew Dunning5-5/+5
Credits pandoc in content creator metadata (the default is 'LaTeX with hyperref').
2019-03-25circleci: fix typo.John MacFarlane1-1/+1
2019-03-25appveyor.yml - use ghc 8.6.4.John MacFarlane1-4/+4
Hopefully this will fix segault issues on Windows. See #5037.
2019-03-25HTML reader: read `data-foo` attribute into `foo`.John MacFarlane2-2/+3
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-22LaTeX template: Group graphics-related code (#5389)Andrew Dunning5-35/+18
* LaTeX template: Group graphics-related code The default figure placement was added in <https://github.com/jgm/pandoc/commit/f3ab4bc2b99e9f7f3917708a9110d6500aa051a0>; there does not appear to have been a reason for placing it at the end of the preamble. * Update tests
2019-03-22LaTeX writer: Fix footnotes in table caption and cells.John MacFarlane2-13/+55
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-22fetchItem: don't treat UNC paths as protocol-relative URLs.John MacFarlane1-1/+2
These are paths beginning `//?/UNC/...`. Closes #5127.
2019-03-21LaTeX template: Move \setstretch after front matter (#5378)Andrew Dunning1-1/+3
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-21Improve pdfSize in ImageSize by ignoring all whitespace in /MediaBox command ↵richarddavis1-1/+4
(#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-21Docx writer: Use w:br without attributes for line breaks.John MacFarlane3-4/+1
We previously added the attribute `type="textWrapping"`, but this causes problems on Word Online. Closes #5377.
2019-03-20Improve pdfSize in ImageSize.John MacFarlane2-21/+27
Improves fix to #4322.
2019-03-18Improved fix to #5340 and added test.John MacFarlane2-2/+16
2019-03-18Improve autolink detection in LaTeX reader.John MacFarlane1-2/+2
This determines whether `\url` or `\href` is used. Closes #5340.
2019-03-17Properly escape attributes in Markdown writer.John MacFarlane2-4/+16
Closes #5369.
2019-03-17Add test case for #5368.John MacFarlane1-0/+23
2019-03-14Markdown writer: be sure implicit figures work in list contexts.John MacFarlane1-11/+13
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-14Remove clone of pandoc-citeproc.John MacFarlane1-1/+0
It wasn't being used; cabal.project specifies the version to use. Closes #5366.