Commit graph

10940 commits

Author SHA1 Message Date
Francesco Occhipinti
eef1c211f5 RST reader: flatten nested inlines, closes #4368 (#4554)
nested inlines are not valid RST syntax, so we flatten them following
some readability criteria discussed in #4368.
2018-04-26 12:17:51 -07:00
Joe Hermaszewski
cfa4eee28b DocBook Reader: Read Latex math as output by asciidoctor (#4569) 2018-04-26 12:12:28 -07:00
John Muccigrosso
00e3c5c8c1 Add background-image variable to default.latex (#4601)
New variable with same name as comparable variable in (proposed) reveal.js template, so that background images can indicated for both presentation formats with one variable.
2018-04-26 11:33:20 -07:00
John Muccigrosso
91877692f3 Adding background-image variable to reveal.js template (#4600) 2018-04-26 11:32:48 -07:00
Alexander Krotov
1b5948b079 Remove unused import 2018-04-26 14:43:27 +03:00
Alexander Krotov
4d89a1db7f Muse reader: allow nested footnotes 2018-04-26 12:38:17 +03:00
Alexander Krotov
73463b8239 Muse reader: use Data.Map.member instead of lookup 2018-04-26 12:09:59 +03:00
Alexander Krotov
188f9f4c53 Simplify curSlideHasSpeakerNotes 2018-04-26 12:09:25 +03:00
John MacFarlane
df452038f5 stack.yaml: use latest pandoc-citeproc. 2018-04-25 23:48:01 -07:00
John MacFarlane
c139a011fa LaTeX reader: fixed previous commit. 2018-04-25 23:47:43 -07:00
John MacFarlane
06bc0376d1 LaTeX reader: Improve handling of raw LaTeX (for markdown etc.).
Previously there were some bugs in how macros were handled.

Closes #4589, #4594.
2018-04-25 23:20:52 -07:00
John MacFarlane
aba0f7e063 Add tests for #4589 and #4594 (currently failing). 2018-04-25 23:04:08 -07:00
John MacFarlane
d0940c6e00 Ms template: Fix date.
Previously .ND was used, but this only works if you
have a title page, which we don't.  Thanks to @teoric.
2018-04-25 17:49:01 -07:00
John MacFarlane
a9344bf308 LaTeX reader: support \MakeUppercase, `\MakeLowercase'.
Also `\MakeTextUppercase`, `\MakeTextLowercase` from textcase
and `\uppercase`, `\lowercase`.

We don't mimic exactly the quirky semantic differences between
these commands, but just uppercase/lowercase regular strings within
them.  We leave commands and code alone.

Closes #4595.
2018-04-25 17:39:49 -07:00
John MacFarlane
16f36eee43 Removed deprecated ancient HTML math methods.
Removed `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
`--asciimathml` options.

Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
`Text.Pandoc.Options.HTMLMathMethod` [API change].

Removed unneeded data file LaTeXMathML.js and updated tests.

Bumped version to 2.2.
2018-04-25 17:18:56 -07:00
John MacFarlane
28f7d8ab4d Added license of TikiWiki reader to COPYRIGHT.
Closes #4591.

Ideally the author will relicense as GPL v2 or later.
2018-04-25 17:03:36 -07:00
John MacFarlane
97916f0881 Remove nonfree ICC profiles from thumbnails in test docx files.
Closes #4588.
2018-04-25 17:00:21 -07:00
John MacFarlane
ad37fd8a03 Added licensing headers for DocBook, EPUB, JATS, OPML readers.
See #4592.
2018-04-25 16:36:20 -07:00
John MacFarlane
d48d0df787 Clarified dual-licensing of templates. Closes #4593. 2018-04-25 16:22:59 -07:00
Jesse Rosenthal
bb428df32b Powerpoint writer: Remove docProps/thumbnail.jpeg in data dir.
This file wasn't used in the production of documents. It's supposed to
be a thumbnail of the current document, and we can't actually produce
that ourselves. It turns out that the file contains a nonfree ICC
color calibration file, so the best thing to do would be to remove it
altogether.

Fixes: #4588
2018-04-24 16:00:15 -04:00
John MacFarlane
68f5e5c988 Update changelog. 2018-04-24 12:36:48 -07:00
John MacFarlane
317840ab0d Use latest haddock-library even for stack.lts9 build. 2018-04-24 12:35:03 -07:00
Francesco Occhipinti
9465e5e048 use the -threaded GHC flag when building benchmarks, related to #4130 (#4587) 2018-04-24 12:31:03 -07:00
John MacFarlane
7c77c67037 Update changelog. 2018-04-23 23:20:41 -07:00
John MacFarlane
58534cc74e Revised Dockerfile for static linux build. 2018-04-23 22:43:10 -07:00
John MacFarlane
4ca51ab76c stack.lts9.yaml - remove constraint on haddock-library 2018-04-23 19:04:58 -07:00
John MacFarlane
6acec6bf34 CONTRIBUTING.md: added note about --trace. 2018-04-23 12:02:59 -07:00
John MacFarlane
51cbaeeffe Update man page. 2018-04-22 22:13:49 -07:00
John MacFarlane
dab3330a58 RST reader: allow < 3 spaces indent under directives.
Closes #4579.
2018-04-22 12:20:25 -07:00
John MacFarlane
a9a1a5fab3 Fix link in README. 2018-04-22 11:41:12 -07:00
John MacFarlane
72bdac3036 New README template, take in/out formats from manual. 2018-04-22 11:36:47 -07:00
Mauro Bieg
873a4c4bf5 MANUAL: consolidate input/output format documentation (#4577)
* MANUAL: consolidate format lists

* MANUAL: make formats a proper list
2018-04-22 10:37:36 -07:00
John MacFarlane
c92f7b3fd3 Travis: hide successes on tests. 2018-04-22 09:10:53 -07:00
John MacFarlane
4883f41f53 stack.lts9.yaml - use older haddock-library.
The newer version can't be compiled with the old stack/Cabal
we have on alpine.
2018-04-21 22:23:05 -07:00
John MacFarlane
076093fe62 Small test suite update. Markdown tables. 2018-04-21 14:16:24 -07:00
John MacFarlane
7fbe473b2e Markdown reader/writer: spacing adjustments in tables.
* Markdown writer now includes a blank line at the end
  of the row in a single-row multiline table, to prevent it from being
  interpreted as a simple table.  Closes #4578.
* Markdown reader does a better job computing the relative width of
  the last column in a multiline table, so we can round-trip tables
  without constantly shrinking the last column.
2018-04-21 13:06:57 -07:00
John MacFarlane
229db80ac2 makePDF: Don't try to convert eps files.
pdflatex converts them itself, and JuicyPixels can't do it.
See #2067.
2018-04-21 12:28:30 -07:00
John MacFarlane
cd51983afe makePDF: For pdflatex, use a temp dir in the working directory.
Otherwise we can have problems with things like epstopdf.pl,
which pdflatex runs to convert eps files and which won't run
on a file above the working directory in restricted mode.
2018-04-21 12:27:30 -07:00
John MacFarlane
ec30d56e19 Mime: Use the alias application/eps for eps.
Instead of application/postscript.  This will ensure that
we retain the eps extension after reading the image into
a mediabag and writing it again.  See #2067.
2018-04-21 12:11:48 -07:00
John MacFarlane
26fee8bfee dockerfile: upgrade stack. 2018-04-20 23:37:12 -07:00
John MacFarlane
3c18c1c571 Update man page. 2018-04-20 21:50:42 -07:00
John MacFarlane
9466bffbf0 Update changelog. 2018-04-19 23:24:30 -07:00
John MacFarlane
f508c833f1 Markdown reader: allow empty attributes.
See #2944.
2018-04-19 23:01:52 -07:00
John MacFarlane
276894a2f2 RST writer: use more consistent indentation.
Previously we used an odd mix of 3- and 4-space indentation.
Now we use 3-space indentation, except for ordered lists,
where indentation must depend on the width of the list marker.

Closes #4563.
2018-04-19 13:47:16 -07:00
John MacFarlane
c76565bef5 Parsing.uri: don't treat * characters at end as part of URI.
This fixes #4561, a bug parsing emphasized bare links in RST.
2018-04-19 11:49:17 -07:00
John MacFarlane
b15f4f468d Text.Pandoc.Class.writeMedia: unescape URI-escaping in file path.
This avoids writing things like `file%20one.png` to the file system.
2018-04-19 11:39:35 -07:00
John MacFarlane
b87dd19816 EPUB reader: fix images with space in file path.
Closes #4344.
2018-04-19 11:35:26 -07:00
Alexander Krotov
caeb963447 FB2 writer: convert metadata value "abstract" to book annotation 2018-04-19 17:03:21 +03:00
Alexander Krotov
ce4326a4f1 Muse reader: allow "-" in anchors 2018-04-19 14:17:59 +03:00
John MacFarlane
bc9d296e5a Markdown reader: handle table w/o following blank line in fenced div.
Closes #4560.
2018-04-18 18:27:15 -07:00