Commit graph

10295 commits

Author SHA1 Message Date
mb21
9cba3d22c4 MANUAL.txt simplify and add more structure 2017-12-29 10:37:14 +01:00
Albert Krewinkel
f42839ee2c
Lua filters: stop exporting pushPandocModule
The function `pushPandocModule` was exported by Text.Pandoc.Lua to
enable simpler testing. The introduction of `runPandocLua` renders
direct use of this function obsolete. (API change)
2017-12-29 10:11:45 +01:00
Albert Krewinkel
7fa286fff1
Update tool which generates lua module docs
All "helper functions" are not part of the Lua code for module pandoc,
but are added in Haskell. The respective documentation section must
therefore be excluded from automatic regeneration.
2017-12-29 10:04:55 +01:00
Albert Krewinkel
9be2c7624c
data/pandoc.lua: drop function pandoc.global_filter
The function `global_filter` was used internally to get the implicitly
defined global filter. It was of little value to end-users, but caused
unnecessary code duplication in pandoc. The function has hence been
dropped. Internally, the global filter is now received by interpreting
the global table as lua filter.

This is a Lua API change.
2017-12-29 10:04:55 +01:00
Albert Krewinkel
820ee07f72
doc/lua-filters.md: re-add docs for helper functions
These docs are dropped, as the functions are no longer part of
data/pandoc.lua, from which this section is generated. This is only a
temporary fix: a proper fix will have to re-think how this section is
updated.
2017-12-29 09:04:21 +01:00
Albert Krewinkel
ec068f2318
data/pandoc.lua: fix documentation for global_filter 2017-12-29 09:02:25 +01:00
John MacFarlane
37778077de Update changelog. 2017-12-28 23:25:50 -08:00
John MacFarlane
710c658d4f Bump pandoc-citeproc to 0.12.2.2. 2017-12-28 22:56:29 -08:00
John MacFarlane
f6fdad92a7 Update man page. 2017-12-28 22:50:33 -08:00
John MacFarlane
13fc2b5598 Changelog typo. 2017-12-28 22:49:59 -08:00
John MacFarlane
246e8f081a Update lua-filters.md and the tool that generates it. 2017-12-28 22:02:59 -08:00
John MacFarlane
108e429c88 Fixed some doc comments in data/pandoc.lua. 2017-12-28 21:55:46 -08:00
John MacFarlane
6afdc89699 Remove redundant import. 2017-12-28 21:51:07 -08:00
John MacFarlane
ac8e72a95d
Merge pull request #4170 from oltolm/opendocument
improve formatting of formulas in OpenDocument
2017-12-28 22:30:25 -07:00
John MacFarlane
bc8b4de3e8 Update changelog. 2017-12-28 21:25:10 -08:00
John MacFarlane
12b792ba73 Revised benchmark so it doesn't use FileTree constructor. 2017-12-28 21:21:36 -08:00
John MacFarlane
a8128831cf Use latest pandoc-citeproc. 2017-12-28 21:14:15 -08:00
John MacFarlane
da64e5baa4 Class: make FileTree opaque.
This forces uses to interact with it using
`insertInFileTree` and `getFileInfo`, which normalize
file names.
2017-12-28 16:39:52 -08:00
John MacFarlane
346b10392f Update docs on filters. 2017-12-28 16:39:52 -08:00
John MacFarlane
8b575dbf84 Filter changes.
* Previously we ran all lua filters before JSON filters.
* Now we run filters in the order they are presented on the
  command line, whether lua or JSON.
* The type of `applyFilters` has changed (incompatible API change).
* `applyLuaFilters` has been removed (incompatible API change).
* Bump version to 2.1.

See #4196.
2017-12-28 16:39:52 -08:00
John MacFarlane
9029206715 Makefile tweaks 2017-12-28 16:39:30 -08:00
John MacFarlane
c45f3fe47f Update RELEASE_CHECKLIST. 2017-12-28 16:12:37 -08:00
John MacFarlane
4496b0da0f Makefile: add update-website target 2017-12-28 16:12:32 -08:00
John MacFarlane
f61a8454f2 Update man page. 2017-12-28 15:57:59 -08:00
John MacFarlane
0cf342df5a Update changelog. 2017-12-28 15:57:34 -08:00
John MacFarlane
e4f1bf88e9
Merge pull request #4212 from iredwards/master
clarify default html output for --section-divs
2017-12-28 16:42:35 -07:00
John MacFarlane
6db422abbe Revert "Revert "Travis: removed lts-9 build.""
This reverts commit 915775b8b0.
2017-12-28 15:31:01 -08:00
Richard Edwards
560855dd83
Merge pull request #1 from iredwards/iredwards-patch-1
clarify default html output for --section-divs
2017-12-28 15:29:53 -08:00
John MacFarlane
915775b8b0 Revert "Travis: removed lts-9 build."
This reverts commit 2278cd5e77.
2017-12-28 15:29:16 -08:00
Richard Edwards
eabb47335a
clarify default html output for --section-divs
In Pandoc v2 using --section-divs and -t html results in <section>s, not <div>s, by default, as was the case for v1.9.
This change to the Manual emphasizes that you must use -t html4 if you want divs, otherwise you get sections.
2017-12-28 15:27:16 -08:00
oltolm
19bab48dcc improve formatting of formulas in OpenDocument 2017-12-28 22:10:04 +01:00
John MacFarlane
98fd9a978a Alphabetical order Extension constructors.
This makes them appear in order in `--list-extensions`.
2017-12-28 12:23:46 -08:00
John MacFarlane
e10864d9d5 Changed format of --list-extensions.
Now the + or - occurs first.
2017-12-28 12:12:22 -08:00
John MacFarlane
3494b6efd3 Powerpoint writer tests: use IO.
Otherwise we can't find the data files when compiled
with -embed_data_files.
2017-12-28 12:06:38 -08:00
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