Commit Graph
10211 Commits
Author SHA1 Message Date
John MacFarlane d5770b7496 Moved makeCanoncial definition out of ifdef!
Also added slide2 to the default pptx, and reordered
the data files in pandoc.cabal.
2017-12-28 11:03:53 -08:00
John MacFarlane 60ace79b03 Class: use makeCanonical for normalization in FileTree and data files. 2017-12-28 10:47:09 -08:00
John MacFarlane 51b7fe85a8 Added data/docx/word/comments.xml to pandoc.cabal data files. 2017-12-28 10:31:37 -08:00
John MacFarlane fa79e003b3 Use insertInFileTree in powerpoint test. 2017-12-28 10:26:54 -08:00
John MacFarlane ddd6a89247 Text.Pandoc.Class: add insertInFileTree (API change).
This gives a pure way to insert an ersatz file into a FileTree.

In addition, we normalize paths both on insertion and on
lookup, so that "foo" and "./foo" will be judged equivalent.
2017-12-28 10:23:09 -08:00
John MacFarlane 999dd2a239 linux package build: use stack lts-9.
Also break up the build into three chunks for better
cacheability.
2017-12-28 09:25:01 -08:00
John MacFarlane 2dd01b2071 Fixed warning in powerpoint writer test. 2017-12-28 08:54:42 -08:00
John MacFarlane 90296d7e96 LaTeX writer: Use \endhead after \toprule in headerless tables.
Closes #4207.
2017-12-28 08:53:54 -08:00
John MacFarlane 3c93ac5cf0 LaTeX reader: be more tolerant of & character.
This allows us to parse unknown tabular environments
as raw LaTeX.  Closes #4208.
2017-12-28 08:41:53 -08:00
John MacFarlane 2278cd5e77 Travis: removed lts-9 build. 2017-12-28 08:30:21 -08:00
Jesse Rosenthal c1fbf7257b PowerPoint writer: Introduce beginning of tests
This is the beginning of a test suite for the powerpoint
writer. Initial tests are for the number of slides.

Note that at the moment it does not test against corruption in
Microsoft PowerPoint; it just tests that certain outcomes work as
expected. More tests will be added.

This test framework uses the PandocPure monad introduced with Pandoc 2.0.
2017-12-28 10:51:03 -05:00
Albert Krewinkel c6b5d65161 Org smart test: drop superfluous import
Keeps GHC 7.8 and GHC 7.10 happy.
2017-12-28 14:51:03 +01:00
Albert Krewinkel e5c8b65004 Org reader: support minlevel option for includes
The level of headers in included files can be shifted to a higher level
by specifying a minimum header level via the `:minlevel` parameter. E.g.
`#+include: "tour.org" :minlevel 1` will shift the headers in tour.org
such that the topmost headers become level 1 headers.

Fixes: #4154
2017-12-28 14:16:04 +01:00
Albert Krewinkel 2d443ecb07 Break-up org reader test file
The org reader test file had grown large, to the point that editor
performance was negatively affected in some cases. The tests are spread
over multiple submodules, and re-combined into a tasty TestTree in the
main org reader test file.
2017-12-28 14:15:58 +01:00
Alexander Krotov 0fd7ed0cab FB2 writer: add cover image specified by "cover-image" meta
Fixes #4195
2017-12-28 16:03:18 +03:00
Jesse Rosenthal 52a4cf6699 PowerPoint writer: Obey slide level option 2017-12-28 07:47:07 -05:00
John MacFarlane bbf1192b86 Travis: do a stack build with lts-9. Use system ghc. 2017-12-27 23:41:31 -08:00
John MacFarlane 64b72e68a0 stack.lts9.yaml: added some necessary build-deps. 2017-12-27 23:20:09 -08:00
John MacFarlane c715fa7875 Added stack.lts9.yaml for building with lts 9 and ghc 8.0.2. 2017-12-27 23:15:20 -08:00
John MacFarlane 62bc894f9e Update appveyor to use stack.yaml. 2017-12-27 21:25:07 -08:00
John MacFarlane 40a55728bb Docker build: upgrade stack first. 2017-12-27 20:55:15 -08:00
John MacFarlane ffa3d7160e Removed stack.pkg.yaml.
We only really need stack.yaml; we can put flag settings
for pandoc-citeproc there.

Also use ghc-8.0.2 in dockerized linux build.  This is
the only version available for alpine so far.
2017-12-27 20:21:37 -08:00
John MacFarlane 4371b07cd1 Added 'make trypandoc' target 2017-12-27 14:09:48 -08:00
John MacFarlane 18da5443ff Update RELEASE-CHECKLIST. 2017-12-27 14:09:28 -08:00
John MacFarlane ba6c193457 Fix warning. 2017-12-27 13:38:44 -08:00
John MacFarlane c9cc7e6ab6 Update changelog. 2017-12-27 12:40:10 -08:00
John MacFarlane f688086979 Small improvement to figcaption parsing. #4184. 2017-12-27 12:38:04 -08:00
John MacFarlane acfa846aab Merge pull request #4184 from mb21/html-reader-figcaption
HTML Reader: be more forgiving about figcaption
2017-12-27 13:33:00 -07:00
John MacFarlane 2e8722da6c Update man page and changelog. 2017-12-27 12:30:05 -08:00
John MacFarlane a888083ee1 HTML reader: parse div with class line-block as LineBlock.
See #4162.
2017-12-27 12:26:15 -08:00
John MacFarlane cc9e3a9172 Allow --list-extensions to take an optional FORMAT argument.
This lists the extensions set by default for the selected
FORMAT.
2017-12-27 12:25:48 -08:00
John MacFarlane ab9b9cf95b Update changelog 2017-12-27 11:39:13 -08:00
John MacFarlane 8a35b44aaf Allow lenient decoding of *latex error logs.
These sometimes aren't properly UTF8 encoded, and it's
confusing if we get an encoding error due to the error
log.

Closes #4200.
2017-12-27 11:37:35 -08:00
Albert Krewinkel 3b2282c962 data/sample.lua: use next instead of for loop
Each definition list item contains just a single key and the associated
value.  Using `next` to get the key/value pair is more idiomatic than
iterating over the single-element table.
2017-12-27 20:11:19 +01:00
John MacFarlane e19526846f Removed extra comment. 2017-12-27 10:52:12 -08:00
John MacFarlane cb4123841c Revert "data/sample.lua: Fixed problem with definition lists."
This reverts commit 0e3736422e
in favor of @tarleb's fix.
2017-12-27 10:48:34 -08:00
John MacFarlane 1ce426a9cb Add custom tests to pandoc.cabal 2017-12-27 10:48:19 -08:00
John MacFarlane 152731b590 Update changelog. 2017-12-27 09:55:28 -08:00
John MacFarlane 56951b873e Updated man page. 2017-12-27 09:53:50 -08:00
John MacFarlane eb7f65305d Update manual date and man page. 2017-12-27 09:53:16 -08:00
John MacFarlane c164c94d79 Merge pull request #4204 from mb21/extension-docs
MANUAL introduce dedicated extensions section
2017-12-27 10:52:33 -07:00
Albert Krewinkel 2953983e9e Fix regression of DefinitionLists in custom writer
Pairs where serialized as two-element lists instead, and are now pushed
again as a table with a single key/value pair.

Fixes: #4202
2017-12-27 18:48:52 +01:00
John MacFarlane 9ef3d77652 Makefile: Add 'pandoc-templates' target. 2017-12-27 09:35:20 -08:00
John MacFarlane 87c9771e9a Update changelog. 2017-12-27 09:21:38 -08:00
John MacFarlane 27ba06fe8f data/sample.lua: fixed problem with tables.
Closes #4202.
2017-12-27 09:16:29 -08:00
John MacFarlane 0e3736422e data/sample.lua: Fixed problem with definition lists. 2017-12-27 09:16:01 -08:00
John MacFarlane e23e1f3c22 Added tests for custom writer. 2017-12-27 09:15:45 -08:00
mb21 44e504853f MANUAL.txt introduce dedicated extensions section 2017-12-27 17:11:23 +01:00
Jesse Rosenthal d71165c8e2 Docx reader: add tests for structured document tags unwrapping. 2017-12-27 10:03:00 -05:00
Jesse Rosenthal dc3ee500a0 Docx Reader: preprocess Document body to unwrap "w:sdt" elements
We walk through the document (using the zipper in
Text.XML.Light.Cursor) to unwrap the sdt tags before doing the rest of
the parsing of the document. Note that the function is generically
named `walkDocument` in case we need to do any further preprocessing
in the future.

Closes #4190
2017-12-27 10:03:00 -05:00