John MacFarlane
86282d6560
Fixed trypandoc to work with new API.
2017-06-10 21:38:08 +02:00
John MacFarlane
25bfa26554
Fixed weigh-pandoc for Text readers.
2017-06-10 21:10:52 +02:00
John MacFarlane
f43504f9f4
Fixed benchmark to work with Text readers.
2017-06-10 20:57:38 +02:00
John MacFarlane
94b3dacb4e
Changed all readers to take Text instead of String.
...
Readers: Renamed StringReader -> TextReader.
Updated tests.
API change.
2017-06-10 18:26:44 +02:00
John MacFarlane
d6822157e7
Readers: Changed StringReader -> TextReader.
2017-06-10 16:06:15 +02:00
John MacFarlane
d1e78d96b6
UTF8: export fromText, fromTextLazy.
2017-06-10 16:05:56 +02:00
John MacFarlane
627e27fc1e
App: change readSource(s) to use Text instead of String.
2017-06-10 15:55:18 +02:00
John MacFarlane
c691b97506
UTF8: export toText, toTextLazy.
...
Define toString, toStringLazy in terms of them.
2017-06-10 15:54:35 +02:00
John MacFarlane
72b45f05ed
Rewrote convertTabs to use Text not String.
2017-06-10 15:22:25 +02:00
John MacFarlane
28bea39e83
Changed comodo code signing key path.
2017-06-09 23:14:26 +02:00
Václav Haisman
4bae307616
Added aspectratio variable to beamer template ( #3723 ).
...
* Transplant jgm/pandoc-templates#236 to Pandoc repository.
* Document `aspectratio` in user manual.
* Enumerate possible values for `aspectratio`.
2017-06-05 15:52:36 +02:00
John MacFarlane
2d0151d14b
Updated to lts-8.16 in stack.pkg.yaml.
2017-06-04 21:33:13 +02:00
John MacFarlane
f5c7e41c78
Removed circle.yml.
2017-06-04 21:20:46 +02:00
John MacFarlane
74546a9454
Add circle.yml for CircleCI test.
2017-06-04 21:19:07 +02:00
John MacFarlane
0fd110b14e
Fixed MacOS packaging script.
2017-06-04 21:02:11 +02:00
John MacFarlane
610f1706b6
Remove cpphs build requirement -- it is no longer needed.
...
It was required when we used hsb2hs but no longer seemes
needed with file-embed.
2017-06-04 21:01:34 +02:00
John MacFarlane
a2afd8f2ba
Updated man page.
2017-06-04 20:40:09 +02:00
John MacFarlane
c965770c3d
Use latest pandoc-citeproc in binary packages.
2017-06-04 20:39:33 +02:00
John MacFarlane
1bf38851dc
stack.yaml - Use lts-8.16 resolver.
2017-06-04 18:18:24 +02:00
John MacFarlane
3890e50f11
.travis.yml - removed hsb2hs stuff.
2017-06-04 15:59:05 +02:00
Albert Krewinkel
55d679e382
Improve code style in lua and org modules
2017-06-03 13:35:19 +02:00
Albert Krewinkel
d55f01c65f
Org reader: apply hlint suggestions
2017-06-03 00:05:20 +02:00
John MacFarlane
b61a51ee15
hlint suggestions.
2017-06-02 15:25:39 +02:00
John MacFarlane
18f86a0c02
Fixed keywords in docx writer.
...
(See #3719 )
2017-06-02 10:17:19 +02:00
John MacFarlane
a063ba58fd
Merge pull request #3719 from iandol/patch-2
...
Add keywords metadata to docx core.xml document properties
2017-06-02 10:11:37 +02:00
John MacFarlane
e43ea03410
Fixed HTML reader.
2017-06-02 10:10:31 +02:00
Ian
b2fe1015d9
Add keywords metadata to docx document properties
...
Hi, I don't know haskell so possibly this is wrong, but DOCX stores keywords in cp:keywords in core.xml, and this should be easy to add from the pandoc metadata (I copy and paste the author code). As far as I can tell (no clear documentation, just a few refs), keywords should be separated with a comma.
2017-06-02 10:47:30 +08:00
John MacFarlane
eb6fb62e55
HTML reader: Use sets instead of lists for block tag lookup.
2017-06-01 19:15:00 +02:00
John MacFarlane
0f07404daf
HTML reader: Removed "button" from block tag list.
...
It is already in the eitherBlockOrInlineTag list, and
should be both places.
Closes #3717 .
Note: the result of this change is that there will be
p tags around the whole paragraph. That is the right
result, because the `button` tags are treated as inline
HTML here, and the whole chunk of text is a Markdown
paragraph.
2017-06-01 18:59:21 +02:00
John MacFarlane
8218bdb95c
HTML writer: Avoid two class attributes when adding 'uri' class.
...
Closes #3716 .
2017-06-01 18:41:54 +02:00
John MacFarlane
0cf6511f16
Some hlint refactoring.
2017-06-01 15:09:38 +02:00
John MacFarlane
c00471ca0d
Makefile: added 'lint' target.
2017-06-01 15:09:30 +02:00
John MacFarlane
b1a9b567aa
Trivial reformatting.
2017-06-01 14:19:43 +02:00
John MacFarlane
c2eb7d0857
Use isNothing.
2017-06-01 14:16:17 +02:00
John MacFarlane
00d8585d8f
Trivial renaming.
2017-06-01 14:14:42 +02:00
John MacFarlane
c366fab2cb
Markdown writer: Avoid inline surround-marking with empty content.
...
E.g. we don't want `<strong></strong>` to become `****`.
Similarly for emphasis, super/subscript, strikeout.
Closes #3715 .
2017-06-01 12:30:58 +02:00
John MacFarlane
9396f1fb67
LaTeX reader: handle some width specifiers on table columns.
...
Currently we only handle the form `0.9\linewidth`.
Anything else would have to be converted to a percentage,
using some kind arbitrary assumptions about line widths.
See #3709 .
2017-06-01 12:08:28 +02:00
John MacFarlane
af6e8414c7
LaTeX reader: more table refactoring.
2017-06-01 11:56:59 +02:00
John MacFarlane
58cfac84f0
LaTeX reader: Small refactoring of table parsing code.
...
This makes room for doing something with widths.
2017-06-01 11:35:03 +02:00
John MacFarlane
1e7ba5ccd7
LaTeX reader: Handle block structure inside table cells.
...
minipage is no longer required.
Closes #3709 .
2017-06-01 11:16:28 +02:00
John MacFarlane
a61dce88e8
Merge pull request #3714 from tarleb/odt-reader-cleanup
...
Odt reader: remove dead code
2017-06-01 10:26:25 +02:00
Albert Krewinkel
e1a0666689
Org reader: respect export option for tags
...
Tags are appended to headlines by default, but will be omitted when the
`tags` export option is set to nil.
Closes : #3713
2017-05-31 21:26:07 +02:00
Albert Krewinkel
33a1e4ae1a
Org reader: include tags in headlines
...
The Emacs default is to include tags in the headline when exporting.
Instead of just empty spans, which contain the tag name as attribute,
tags are rendered as small caps and wrapped in those spans.
Non-breaking spaces serve as separators for multiple tags.
2017-05-31 20:43:30 +02:00
Albert Krewinkel
7852cd5603
Org reader: recognize babel result blocks with attributes
...
Babel result blocks can have block attributes like captions and names.
Result blocks with attributes were not recognized and were parsed as
normal blocks without attributes.
Fixes : #3706
2017-05-31 20:01:04 +02:00
Albert Krewinkel
4b98d0459a
Org reader: fix module names in haddock comments
...
Copy-pasting had lead to haddock module descriptions containing the
wrong module names.
2017-05-31 20:01:04 +02:00
Albert Krewinkel
f955af58e6
Odt reader: remove dead code
...
The ODT reader contained a lot of general code useful for working with
arrows. However, many of these utils weren't used and are hence removed.
2017-05-31 19:59:34 +02:00
John MacFarlane
774075c3e2
Added eastAsianLineBreakFilter to Shared.
...
This used to live in the Markdown reader.
2017-05-30 10:22:48 +02:00
John MacFarlane
5ec384eb60
LaTeX reader: handle escaped & inside table cell.
...
Closes #3708 .
2017-05-29 22:47:04 +02:00
John MacFarlane
230a1b89e8
LaTeX reader: don't crash on empty enumerate environment.
...
Closes #3707 .
2017-05-29 15:09:24 +02:00
John MacFarlane
d461b29d9d
Merge pull request #3704 from labdsf/anylinenewline
...
Markdown reader: use anyLineNewline
2017-05-29 09:25:53 +02:00