Marc Schreiber
155a2ac039
Add support to parse unit string of \SI command ( closes #4296 ).
2018-03-17 20:59:20 -07:00
John MacFarlane
14cc82bcc7
Update changelog.
2018-03-17 20:49:15 -07:00
John MacFarlane
fef484c4d0
Fixed typo introduced in merge.
2018-03-17 20:41:11 -07:00
John MacFarlane
01f7f8da62
Update man page.
2018-03-17 20:40:16 -07:00
Francesco Occhipinti
ba965d1736
RST writer: filter out empty inline containers ( #4434 ).
...
There is nothing in RST that corresponds to e.g. `Emph []`, so we just filter out elements like this.
2018-03-17 20:39:26 -07:00
Francesco Occhipinti
e5845f33ad
Don't wrap lines in grid tables when --wrap=none
( #4320 )
...
* Annotate gridTable code with comments and abstract small functions
* Don't wrap lines in tables when `--wrap=none`. Instead, expand cells, even if
it results in cells that don't respect relative widths or surpass page column width.
* This change affects RST, Markdown, and Haddock writers.
2018-03-17 20:31:43 -07:00
Václav Haisman
2ddf2257dc
Provide bidi
package's option using \PassOptionsToPackage
( #4357 ).
...
* Provide `bidi` package's option using `\PassOptionsToPackage`. This avoid clash when `polyglossia` loads it first and then it is loaded again for XeLaTeX when `latex-dir-rtl` defined.
* Adjust test suite for LaTeX template change.
2018-03-17 20:20:57 -07:00
Francesco Occhipinti
90a705c8af
RST writer: separate inline transformation logic from writing logic ( #4438 )
...
This is to help enable solutions solutions to #4434 and #4368 .
2018-03-17 20:17:55 -07:00
Francesco Occhipinti
65cc909fde
RST writer: strip whitespace within inlines, closes #4327 ( #4329 )
...
+ Whitespace is ignored at the beginning and end of emphasis, as per
<http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup >.
+ Export `stripLeadingTrailingSpace` from `Text.Pandoc.Writers.Shared`.
2018-03-17 19:21:27 -07:00
John MacFarlane
59903ec82c
Bump to 2.1.3, update changelog.
2018-03-17 19:00:20 -07:00
John MacFarlane
049dacf85f
Removed redundant import of <>
2018-03-17 17:17:47 -07:00
John MacFarlane
afb72f1857
Add semigroups dependency to executables...
...
since custom prelude depends on it.
2018-03-17 17:10:02 -07:00
John MacFarlane
605545e024
Work around Monoid/Semigroup-related compiler errors GHC 7.10.
2018-03-17 14:25:05 -07:00
John MacFarlane
2eba15c181
More CSS around DocTable in Haddock reader.
2018-03-17 08:18:15 -07:00
Mauro Bieg
8a5b3368b2
INSTALL.md don't advise to always build tests
2018-03-17 15:47:22 +01:00
John MacFarlane
fad8d0d67f
Allow earlier versions of haddock-library, use CPP.
2018-03-16 23:18:42 -07:00
John MacFarlane
be12ae3bca
Better table handling for Haddock.
...
In the reader, we use the new Table type in Haddock.
Note that tables with col/rowspans will not translate
well into Pandoc.
In the writer, we now render tables always as grid tables,
since Haddock supports these.
2018-03-16 22:38:34 -07:00
John MacFarlane
c166861ee6
Require haddock-libary 1.5 (with tables).
2018-03-16 21:21:41 -07:00
John MacFarlane
424d0df1f2
Use latest pandoc-types.
2018-03-16 21:20:52 -07:00
John MacFarlane
d0c27989a6
Fix Prelude <> export.
2018-03-16 12:28:52 -07:00
John MacFarlane
f0b6e0ee49
Monoid/Semiground cleanup relying on custom Prelude.
2018-03-16 12:17:58 -07:00
John MacFarlane
e21b57991e
Added custom prelude.
...
We need this again because of Monoid/Semigroup.
2018-03-16 10:21:54 -07:00
John MacFarlane
bc2f4422b2
License to GPL-2 instead of GPL.
...
New cabal new-build seems to choke on GPL, even though it's
supposed to be legal.
2018-03-16 08:41:26 -07:00
John MacFarlane
0b5712e69b
Class: Semigroup instance for FileTree with base >= 4.9.
2018-03-16 08:23:34 -07:00
John MacFarlane
8360f9dedf
Translations: Semigroup instance for Translations with base >= 4.9.
2018-03-16 08:21:52 -07:00
John MacFarlane
0cbb811f3d
Extensions: Semigroup instance for Extensions with base >= 4.9.
2018-03-16 08:20:12 -07:00
John MacFarlane
2240c4d80b
Semigroup instance for Styles in T.P.Readers.Odt.StyleReader.
2018-03-16 08:17:59 -07:00
John MacFarlane
94d64a63f2
Removed redundant import.
2018-03-16 08:15:09 -07:00
John MacFarlane
07e0981316
Pretty: Semigroup instance for Doc with base >= 4.9.
2018-03-16 08:12:33 -07:00
John MacFarlane
ec1e2c87b7
Semigroup instance for MediaBag with base >= 4.9.
2018-03-16 08:11:10 -07:00
John MacFarlane
daa5475620
Travis: add ghc 8.4.1 cabal build.
2018-03-15 23:49:48 -07:00
John MacFarlane
1ac56f99df
Bump upper-bound for time, criterion, haddock-library, exceptions.
2018-03-15 23:48:19 -07:00
John MacFarlane
df71628d26
Remove redundant import.
2018-03-15 12:23:33 -07:00
John MacFarlane
4eb71693e5
Remove redundant import.
2018-03-15 09:54:02 -07:00
John MacFarlane
b76c0e6a4a
RST reader: Allow unicode bullet characters.
...
Closes #4454 .
2018-03-14 17:33:00 -07:00
John MacFarlane
1b37e3b3c0
Require pandoc-types 1.17.4.
...
And a few tweaks related to the Semigroups/Monoid change.
Closes #4448 .
2018-03-13 23:23:04 -07:00
Mauro Bieg
bcfc3916e9
DokuWiki writer: rewrite backSlashLineBreaks ( #4445 )
...
Rewrite for efficiency.
2018-03-13 21:41:23 -07:00
Jesse Rosenthal
85a65c6a51
Docx reader: add tests for nested smart tags.
2018-03-13 22:16:54 -04:00
Jesse Rosenthal
b3fe95d721
Docx reader: Parse nested smart tags.
...
Make unwrapSDT into a general `unwrap` function that can unwrap both
nested SDT tags and smartTags. This makes the SmartTags constructor in
the Docx type unnecessary, so we remove it.
Closes #4446
2018-03-13 22:15:11 -04:00
John MacFarlane
17725a0661
Beamer: put hyperlink after \begin{frame}
.
...
and not in the title. If it's in the title, then we get
a titlebar on slides with the `plain` attribute, when
the id is non-null. This fixes a regression from 1.9.x.
Closes #4307 .
2018-03-13 10:03:51 -07:00
John Muccigrosso
f921b38869
Add instructions for background images reveal.js ( #4325 )
2018-03-13 09:17:46 -07:00
John MacFarlane
93228d594e
appveyor: use Visual Studio 2013 instead of 2015.
...
Perhaps this will help with #4283 .
2018-03-12 10:26:26 -07:00
Alexander Krotov
f7226a57af
Docx reader: remove unused docxWarnings
2018-03-12 15:49:31 +03:00
Alexander Krotov
3ee45a7357
Muse reader: compare first rewrite to the second in round-trip test
2018-03-12 15:09:27 +03:00
Alexander Krotov
bf16a9c78a
Muse reader: make parseBlocks similar to parseBlocksTill
2018-03-12 14:51:44 +03:00
Alexander Krotov
c3fbc492c8
Muse reader: require closing tag to have the same indentation as opening
2018-03-12 14:24:50 +03:00
Alexander Krotov
f0a029ac51
Muse reader: do not reparse blocks inside unclosed block tag
...
Fixes #4425
2018-03-12 13:44:27 +03:00
Mauro Bieg
15f700d8ed
html2pdf: inject base tag wih current working directory ( #4443 )
...
fixes #4413
2018-03-11 18:21:15 -07:00
Mauro Bieg
a0da1e2723
Dokuwiki writer: fix LineBreaks in Tables ( #4444 )
...
fixes #4313
2018-03-11 18:20:36 -07:00
John MacFarlane
2f979e0684
BUmp upper bound for http-types.
2018-03-11 18:01:57 -07:00