Commit graph

11210 commits

Author SHA1 Message Date
John MacFarlane
0272e63527
Merge pull request #4921 from pyssling/master
ODT Writer: Improve table header row style handling
2018-09-24 10:01:21 -07:00
John MacFarlane
259d6f4f10
Merge pull request #4931 from ajscholl/master
RTF writer: Fix build failure with ghc-8.6.1 caused by missing MonadFail instance.
2018-09-24 09:45:39 -07:00
Jonas Scholl
f15c8d1ab4 RTF writer: Fix build failure with ghc-8.6.1 caused by missing MonadFail instance. 2018-09-24 14:58:26 +02:00
Alexander Krotov
cd610da8cc Muse reader: replace inlineList with inline' 2018-09-24 14:37:54 +03:00
Alexander Krotov
6d16ea9c76 Muse reader: replace optionMaybe and fromMaybe with option 2018-09-24 10:57:45 +03:00
Nils Carlson
ce6e9e8817 ODT Writer: Improve table header row style handling
This changes the way styles for cells in the header row
and normal rows are handled in ODT tables.

Previously a new (but identical) style was generated for
every table, specifying the style of the cells within the table.

After this change there are two style definitions for table cells,
one for the cells in the header row, one for all other cells.

This doesn't change the actual styles, but makes post-processing
changes to the table styles much simpler as it is no longer
necessary to introduce new styles for header rows and there are
now only two styles where there was previously one per table.
2018-09-23 22:04:32 +00:00
John MacFarlane
4bc2b7eb5b LaTeX writer: fix a use of last that might take empty list.
If you ran with `--biblatex` and have an empty document (metadata
but no blocks), pandoc would previously raise an error because
of the use of `last` on an empty list.
2018-09-22 20:40:59 -07:00
John MacFarlane
0bd27608a6
Merge pull request #4927 from tie/patch-1
Translations/ru
2018-09-22 16:26:43 -07:00
John MacFarlane
5baea569c7 Update changelog. 2018-09-22 16:24:31 -07:00
Ivan Trubach
9f4406023f
Translations/ru
I suppose that you copy-pasted the Russian translations from babel[1] package. Actually, it has two versions — `captionsrussian@ancient` and `captionsrussian@modern`, the former contains translations for the pre-revolution (1918) orthography.

[1]: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/babel-contrib/russian/russianb.ldf
2018-09-22 22:21:56 +03:00
Alexander Krotov
389ffa3045 Muse reader tests: more tests
Check that indented blocks that end in self-terminating blocks (such as block tags and verse) can be terminated by paragraphs.
2018-09-22 20:28:11 +03:00
Alexander Krotov
111e6ffa55 Muse reader: simplify tag parsers 2018-09-21 14:01:43 +03:00
Alexander Krotov
3067e57bd4 Muse reader: use isAlphaNum instead of isLetter and isDigit 2018-09-21 13:10:20 +03:00
Alexander Krotov
dd5d234c6a Muse reader: do not allow code markup to be followed by digit 2018-09-21 13:07:56 +03:00
Alexander Krotov
ca0bb5123e Muse reader: simplify ordered list parsing 2018-09-21 13:00:15 +03:00
Alexander Krotov
23725f3a20 Muse reader: rewrite headingStart in applicative style
and remove heading level limit
2018-09-21 12:26:29 +03:00
Alexander Krotov
e26313dd62 Muse reader: refactoring 2018-09-21 11:50:51 +03:00
John MacFarlane
b7b93d7609 Fix compiler warning. 2018-09-20 21:29:08 -07:00
Alexander Krotov
f57a8aa655 Muse reader: simplify <literal> tag parsers 2018-09-21 05:45:16 +03:00
Alexander Krotov
095fff7da1 Muse reader: cleanup and conversion to applicative style 2018-09-21 03:03:20 +03:00
Alexander Krotov
fedf1f213f Muse reader: simplify lchop 2018-09-21 02:57:06 +03:00
John MacFarlane
37c6f6adfe RST reader: fix bug with internal link targets.
They were gobbling up indented content underneath.
Closes #4919.
2018-09-20 11:15:03 -07:00
John MacFarlane
5b1fdeaf41 ConTeXt writer: change \ to / in Windows image paths.
We do this in the LaTeX writer, and it avoids problems.
Note that `/` works as a LaTeX path separator on Windows.
Closes #4918.
2018-09-20 09:36:44 -07:00
John MacFarlane
136bf901aa Markdown reader: distinguish autolinks in the AST.
With this change, autolinks are parsed as Links with
the `uri` class. (The same is true for bare links, if
the `autolink_bare_uris` extension is enabled.)  Email
autolinks are parsed as Links with the `email` class.
This allows the distinction to be represented in the
URI.

Formerly the `uri` class was added to autolinks by
the HTML writer, but it had to guess what was an autolink
and could not distinguish `[http://example.com](http://example.com)`
from `<http://example.com>`.  It also incorrectly recognized
`[pandoc](pandoc)` as an autolink.  Now the HTML writer
simply passes through the `uri` attribute if it is present,
but does not add anything.

The Textile writer has been modified so that the `uri`
class is not explicitly added for autolinks, even if it
is present.

Closes #4913.
2018-09-19 14:53:29 -07:00
Albert Krewinkel
dba5c8d4e3
Lua filter tests: produce better error on test failure 2018-09-19 21:36:19 +02:00
Albert Krewinkel
4264a1b143
Lua filter: cleanup filter execution code 2018-09-19 21:36:13 +02:00
Alexander Krotov
8f841297df Muse reader: parse Text instead of String
Benchmark shows 7% improvement
2018-09-19 16:36:29 +03:00
Alexander Krotov
841784fb57 hlint Muse reader 2018-09-19 15:26:21 +03:00
Alexander Krotov
1b8c22de1d Muse reader: get rid of HTML parser dependency 2018-09-19 15:19:06 +03:00
Alexander Krotov
6be2e43397 Muse reader: use openTag and closeTag everywhere 2018-09-19 14:06:14 +03:00
Alexander Krotov
94b9561e05 Muse reader: make openTag return association list 2018-09-19 14:05:55 +03:00
Alexander Krotov
1feb62cb24 Muse reader: add openTag and closeTag functions 2018-09-19 13:22:25 +03:00
John MacFarlane
6632f2f2ce Add .options class to option headers in manual.
This will allow autogeneration of ids for particular
options in the manual.
2018-09-18 11:35:23 -07:00
John MacFarlane
9161dc4a6d
Merge pull request #4914 from danse/4912-2
parse rST inlines containing newlines closing #4912
2018-09-18 09:39:17 -07:00
danse
db2a68d089 parse rST inlines containing newlines closing #4912
this eliminates a regression error introduced after pandoc 2.1.1,
affecting rST inline parsing. see the issue for details
2018-09-18 13:31:09 +02:00
John MacFarlane
e09dc44c00 Makefile: Fix executable path in trypandoc target. 2018-09-16 22:31:35 -07:00
John MacFarlane
b694cdd9a6 Update changelog. 2018-09-16 20:43:25 -07:00
John MacFarlane
1dd899c242 MANUAL: use https for context wiki links.
Otherwise the wiki won't redirect.

Closes #4910.
2018-09-16 20:41:20 -07:00
John MacFarlane
44e4f7b292 Markdown reader: example_lists should work without startnum.
Closes  #4908.
2018-09-16 20:40:32 -07:00
John MacFarlane
47034fd781 Use released version of pandoc-citeproc (0.14.4). 2018-09-16 20:00:26 -07:00
John MacFarlane
1cd03e30df linux/Dockerfile: Use more recent (unofficial) stack. 2018-09-16 19:42:08 -07:00
John MacFarlane
24ccfedf7a 'make winpkg': Fixed creation of zips. 2018-09-16 16:15:08 -07:00
John MacFarlane
965806f087 Makefile: fix creation of windows zip.
This needed tweaking when the msi was fixed to be 64-bit,
so that 'Program Files (x86)' is used.
2018-09-16 14:00:18 -07:00
John MacFarlane
f9665d0f4a Linux Dockerfile: try upgrading stack. 2018-09-16 13:55:13 -07:00
John MacFarlane
5776e62edf Remove upx stuff from Dockerfile. 2018-09-16 13:53:43 -07:00
John MacFarlane
08a008af83 Fix 'make winpkg'. 2018-09-16 13:45:46 -07:00
John MacFarlane
04fce40cd6 Update manual date and man page. 2018-09-16 11:18:41 -07:00
John MacFarlane
d2e32f257e Update changelog, AUTHORS.md. 2018-09-16 11:18:06 -07:00
Alexander Krotov
71776661cd Muse writer: replace newlines in strings with spaces 2018-09-16 21:05:57 +03:00
John MacFarlane
18fed9f586
Merge pull request #4906 from chris-martin/patch-2
Fix haddock on 'Ext_footnotes'
2018-09-16 09:49:11 -07:00