John MacFarlane
6c86e96f9b
appveyor.yml - fix artifacts.
2017-05-19 18:15:49 +02:00
John MacFarlane
8560a693bb
appveyor.yml: added comment with instructions to reset build cache.
2017-05-19 16:22:45 +02:00
John MacFarlane
d487176b58
Revert "appveyor.yml - reset cache when appveyor.yml changes."
...
This reverts commit 8ac2675c27
.
2017-05-19 16:21:35 +02:00
John MacFarlane
8ac2675c27
appveyor.yml - reset cache when appveyor.yml changes.
2017-05-19 16:18:12 +02:00
John MacFarlane
7059f14982
Fixed appveyor.yml.
2017-05-19 15:17:08 +02:00
John MacFarlane
aa6a0bf192
appveyor.yml updates.
...
* Don't try to cache ghc, it's too big.
* Build both 32 and 64 bit versions.
2017-05-19 15:12:56 +02:00
John MacFarlane
0b34f80ffa
appveyor.yml. Fix WINBIN path.
2017-05-19 11:56:44 +02:00
John MacFarlane
c5b1076302
appveyor.yml - put stack executable in stack_root.
2017-05-19 10:42:21 +02:00
John MacFarlane
48d23766a4
appveyor.yml fixes.
2017-05-19 10:29:50 +02:00
John MacFarlane
4aefbb3a11
appveyor.yml improvements.
2017-05-19 10:25:14 +02:00
Albert Krewinkel
7a09b7b21d
Org reader: fix smart parsing behavior
...
Parsing of smart quotes and special characters can either be enabled via
the `smart` language extension or the `'` and `-` export options. Smart
parsing is active if either the extension or export option is enabled.
Only smart parsing of special characters (like ellipses and en and em
dashes) is enabled by default, while smart quotes are disabled.
This means that all smart parsing features will be enabled by adding the
`smart` language extension. Fine-grained control is possible by leaving
the language extension disabled. In that case, smart parsing is
controlled via the aforementioned export OPTIONS only.
Previously, all smart parsing was disabled unless the language extension
was enabled.
2017-05-18 23:25:11 +02:00
John MacFarlane
118c8ddb91
Fixed appveyor.yml.
2017-05-18 23:00:59 +02:00
John MacFarlane
a70b26c310
appveyor: attempt two builds, one 32-bit, one 64-bit.
2017-05-18 22:56:57 +02:00
John MacFarlane
f870a2d8ea
Don't render LaTeX images with data: URIs.
...
LaTeX can't handle these.
Note that --extract-media can be used when the input contains
data: URIs. Closes #3636 .
2017-05-18 22:50:07 +02:00
John MacFarlane
917612747d
Test updates for latex template changes.
2017-05-18 22:46:58 +02:00
lwolfsonkin
b45e47735c
modified template.latex to fix XeLaTex being used with tables ( #3661 )
...
- reordered `lang` variable handling to immediately before `bidi`
2017-05-18 22:42:18 +02:00
John MacFarlane
689a8dcd5f
Update Figure With Caption -> Captioned Figure in MANUAL.txt.
2017-05-18 22:34:54 +02:00
Ian
b9185b0216
Docx writer: Change FigureWithCaption to CaptionedFigure ( #3658 )
...
Edit styles.xml as part of the fix for #3656
2017-05-18 22:34:13 +02:00
John MacFarlane
0f6458c0c1
Don't double extract images from docx.
...
This fixes a regression that was introduced when `--extract-media`
was generalized to work with any input format. We were getting
two versions of each image extracted from a docx, one with a hash,
one with the original filename, though only the hash one was used.
This patch restores the original behavior (using the original
filename).
Pointed out in comments on #3674 . Thanks to @laperouse.
2017-05-18 13:38:19 +02:00
John MacFarlane
818d5c2f35
Markdown: allow attributes in reference links to start on next line.
...
This addresses a subsidiary issue in #3674 .
2017-05-18 13:20:32 +02:00
Stefan Dresselhaus
6b8240fc2f
Add --eol
flag and writer option to control line endings.
...
* Add `--eol=crlf|lf` CLI option.
* Add `optEol` to `WriterOptions` [API change]
* In `Text.Pandoc.UTF8`, add new functions parameterized on `Newline`:
`writeFileWith`, `putStrWith`, `putStrLnWith`, `hPutStrWith`,
`hPutStrLnWith`. [API change]
* Document option in MANUAL.txt.
Closes #3663 .
Closes #2097 .
2017-05-18 11:55:45 +02:00
Albert Krewinkel
399a36280d
Lua module: allow omitting Attr in element constructors
...
The Attr argument is made optional for all pandoc element constructors
which take such a parameter. The attr param is always the last argument
of the constructor functions, so the option to omit them makes it easier
to construct new pandoc elements by hand.
2017-05-18 00:04:48 +02:00
John MacFarlane
7b3aaee15a
Markdown writer: Fixed duplicated reference links
...
with `--reference-links` and `--reference-location=section`.
Also ensure that there are no empty link references `[]`.
Closes #3674 .
2017-05-17 16:23:33 +02:00
John MacFarlane
61e965b117
Merge pull request #3676 from labdsf/space-char
...
Txt2Tags parser: newline is not indentation
2017-05-17 12:47:27 +02:00
John MacFarlane
377733e08f
Merge pull request #3677 from labdsf/anylinenewline
...
Move anyLineNewline to Parsing.hs
2017-05-17 12:47:03 +02:00
Alexander Krotov
55ce47d050
Move anyLineNewline to Parsing.hs
2017-05-17 11:02:38 +03:00
Alexander Krotov
e74bd06cc8
Txt2Tags parser: newline is not indentation
...
space parses '\n', while spaceChar parses only ' ' and '\t'
2017-05-17 02:12:24 +03:00
Albert Krewinkel
602cd6a327
Org reader: replace sequence . map
with mapM
2017-05-16 22:49:52 +02:00
Albert Krewinkel
a27e2e8a4e
Org reader: put tree parsing code into dedicated module
2017-05-16 22:42:34 +02:00
John MacFarlane
fbce4228a5
Merge pull request #3671 from WUUUGI/horizont-spacing
...
Added support for horizontal spacing in LaTeX
2017-05-16 09:18:57 +02:00
John MacFarlane
affc800c47
appveyor.yml: remove manual calls to editbin.
...
To really solve this memory limit, we need to build with
a 64-bit version of ghc.
2017-05-16 09:17:32 +02:00
John MacFarlane
e01e2d0b9b
MANUAL: remove refs to highlighting-kate.
...
Closes #3672 .
2017-05-15 20:37:50 +02:00
John MacFarlane
37189667cc
Textile reader: fix bug for certain links in table cells.
...
Closes #3667 .
2017-05-15 20:36:11 +02:00
John MacFarlane
1e2dc33165
appveyor.yml: proper editbin path both times...
2017-05-15 19:50:37 +02:00
John MacFarlane
a97f69066e
Fixed appveyor.yml syntax error.
2017-05-15 19:35:46 +02:00
John MacFarlane
6f8940882a
appveyor.yml: proper path for editbin.
...
I hope.
2017-05-15 19:27:15 +02:00
John MacFarlane
8e6ea699e9
appveyor.yml: Don't install hsb2hs.
...
We now use file-embed instead.
2017-05-15 19:26:37 +02:00
John MacFarlane
6ddf78b8a0
appveyor.yml: make executables LARGEADDRESSAWARE
...
using editbin, which comes with VisualStudio.
This should help with #3669 (needs testing).
Previously our executables could only access 2GB memory on Windows,
even in 64 bit systems with lots of memory.
2017-05-15 17:42:10 +02:00
John MacFarlane
0a9368ee35
Debian control: updated description.
2017-05-15 17:06:41 +02:00
John MacFarlane
3d6bedff35
Debian control: added latex packages as 'suggested'.
2017-05-15 17:06:28 +02:00
Henri Werth
2de5208311
Added support for horizontal spacing in LaTeX: parse \, to \8198 (six-per-em space)
2017-05-15 16:37:08 +02:00
John MacFarlane
000293a4e3
Merge pull request #3668 from tarleb/copyright-update
...
Update copyright notices
2017-05-15 16:30:33 +02:00
Albert Krewinkel
af4bf91c59
Org reader: add basic file inclusion mechanism
...
Support for the `#+INCLUDE:` file inclusion mechanism was added.
Recognized include types are *example*, *export*, *src*, and normal org
file inclusion. Advanced features like line numbers and level selection
are not implemented yet.
Closes : #3510
2017-05-14 12:45:31 +02:00
Albert Krewinkel
9d295f4527
Parsing: add insertIncludedFilesF
which returns F blocks
...
The `insertIncludeFiles` function was generalized and renamed to
`insertIncludedFiles'`; the specialized versions are based on that.
2017-05-14 12:40:16 +02:00
Albert Krewinkel
5ff6108b4c
Parsing: introduce HasIncludeFiles
type class
...
The `insertIncludeFile` function is generalized to work with all parser
states which are instances of that class.
2017-05-14 10:00:58 +02:00
Albert Krewinkel
7a17c3eb9f
Parsing: replace partial with total function
...
Calling `tail` on an empty list raises an exception, while calling the
otherwise equivalent `drop 1` will return the empty list again.
2017-05-14 09:28:08 +02:00
Albert Krewinkel
09ef99477d
COPYRIGHT: list new files not written by John
2017-05-13 23:50:39 +02:00
Albert Krewinkel
965f1ddd4a
Update dates in copyright notices
...
This follows the suggestions given by the FSF for GPL licensed software.
<https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html >
2017-05-13 23:30:13 +02:00
Albert Krewinkel
1cbb3bad2b
Add haddock module description to FB2 writer
...
Copyright, maintainer etc. were missing in haddock docs for this module.
2017-05-13 23:18:50 +02:00
Albert Krewinkel
62d34c79b9
Change maintainer line in Org writer module
2017-05-13 23:18:10 +02:00