Commit graph

10868 commits

Author SHA1 Message Date
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
Jesse Rosenthal
c5d8fab058 Docx reader tests: Test for combining adjacent code blocks. 2018-04-17 09:29:54 -04:00
Jesse Rosenthal
b948ca6db2 Docx reader: Combine codeBlocks
This prevents a multiline codeblock in word from being read as
different paragraphs. This takes place in the Combine module to occur
during the normal combining of divs during conversion.

Note that this specifies that the attributes of the `CodeBlock`s must
be the same. The docx reader creates codeBlocks without attrs, so this
is trivially satisified.
2018-04-17 09:29:47 -04:00
Alexander Krotov
3443df6068 Markdown reader: add regression test for previous commit 2018-04-17 11:55:37 +03:00
John MacFarlane
8ac5eb9d44 Markdown reader: remove "fallback" for doubleQuote parser.
Previously the parser tried to be efficient -- if no end double
quote was found, it would just return the contents.  But this
could backfire in a case like:

    **this should "be bold**

since the fallback would return the content `"be bold**` and the
closing boldface delimiter would never be encountered.
2018-04-16 23:15:09 -07:00
John MacFarlane
57256d6d91 Beamer writer: don't use format specifier for default ordered lists.
This gives better results for styles that put ordered list
markers in boxes or circles.

Closes #4556.
2018-04-16 19:02:49 -07:00
Alexander Krotov
04478cf0e2 hlint Muse writer 2018-04-16 16:03:49 +03:00
Alexander Krotov
46cc1e73b6 Muse writer: simplify isHorizontalRule 2018-04-16 15:36:30 +03:00
Alexander Krotov
a8122987fc Muse reader: allow verse to be indented
Muse writer indents verse blocks in definition list more than necessary, so Muse reader should parse them.
2018-04-16 15:08:34 +03:00
Alexander Krotov
fb014e6e9f Muse reader code cleanup 2018-04-16 13:22:31 +03:00
Alexander Krotov
ce7301de02 Fix a typo in Muse reader testsuite comment 2018-04-16 12:12:25 +03:00
Alexander Krotov
f39931fd6c Muse writer: escape definition list terms starting with list markers 2018-04-16 11:40:18 +03:00
John MacFarlane
8ca012f139 Ms writer: font improvements.
* Use `\f[R]` rather than `\f[]` to reset.  The latter
  returns to the previous font, which gives unintended
  results in some cases.
* Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
  since the header font is automatically bold.
* Use `\f[CB]` rather than `\f[BC]` for monospace bold.

Closes #4552.
2018-04-15 22:44:16 -07:00
John MacFarlane
939985ef18 MANUAL.txt: Don't say that empty_paragraphs affects markdown output.
It doesn't.

Closes #4540.
2018-04-15 17:51:17 -07:00
John MacFarlane
c8331a924d Makefile: build 32- and 64-bit Windows packages. 2018-04-15 17:09:50 -07:00
Alexander Krotov
01f5ed14e6 Muse reader: don't allow footnote references inside links 2018-04-15 17:53:53 +03:00
Alexander Krotov
17767bd29d Muse writer: escape strings starting with space 2018-04-15 16:28:45 +03:00
Alexander Krotov
9cc2bf0295 Muse reader: allow URL to be empty
Muse writer can write links with empty URLs, so Muse reader should read them.
2018-04-15 14:50:46 +03:00
Alexander Krotov
6be0139145 Muse reader: require that comment semicolons are in the first column
Fixes #4551
2018-04-15 12:17:33 +03:00
John MacFarlane
34d8ffbcfc Added a needed import in Text.Pandoc.App. 2018-04-14 17:44:44 -07:00
John MacFarlane
16439c879e Ms writer link improvements.
+ Create pdf anchor for a Div with an identifier.
+ Escape `/` character in anchor ids.
+ Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
  to avoid ambiguity.

This is intended to help with #4515; however, in my tests, the
link to the reference does not seem to work. I'm not sure why.
2018-04-14 10:59:01 -07:00
John MacFarlane
d5b98c8c6e Man writer: Don't escape U+2019 as '.
Closes #4550.
2018-04-14 10:42:05 -07:00
John MacFarlane
488320faac appveyor.yml - build 64 bit version and 32 bit. 2018-04-12 10:56:44 -07:00