John MacFarlane
60bf4a8bfb
Improved warnings when image size can't be determined.
...
Closes #1834 .
2015-05-09 23:56:53 -07:00
John MacFarlane
31b3f2ef88
ImageSize: Use runGetOrFail with binary 0.7+.
2015-05-09 22:28:49 -07:00
John MacFarlane
a60c65c4e9
ImageSize: make jpeg header parsing routines return Either.
...
See #1834 .
2015-05-09 21:55:19 -07:00
John MacFarlane
6fe243abbd
ImageSize: make imageSize return an Either, not a Maybe.
...
This will give us better error reporting options.
This is part of a fix for #1834 .
2015-05-09 21:32:31 -07:00
John MacFarlane
7920a1a469
Revert "EPUB writer: stylesheet changes. Closes #2040."
...
This reverts commit 1c2951dfd9
.
See #2040 .
The semantics was too squishy. `--css` takes a URL, but
for EPUB we need files that we can read. I prefer keeping
the old system for now, with `--epub-stylesheet`.
2015-05-09 00:07:27 -07:00
John MacFarlane
1c2951dfd9
EPUB writer: stylesheet changes. Closes #2040 .
...
* Allow `--css` to be used to specify stylesheets.
* Deprecated `--epub-stylesheet` and made it a synoynym of
`--css`.
* If a code block with class "css" is given as contents of the
`stylesheet` metadata field, use its literal code as contents of
the epub stylesheet. Otherwise, treat it as a filename and
read the file.
* Note: `--css` and `stylesheet` in metadata are not compatible.
`stylesheet` takes precedence.
2015-05-08 23:47:50 -07:00
John MacFarlane
41a457a649
Merge pull request #2138 from lierdakil/backtick-code-blocks
...
README: Add documentation on backtick_code_blocks
2015-05-07 09:10:24 -07:00
Nikolay Yakimov
c5724eaffb
README: Add documentation on backtick_code_blocks
...
Closes #2135
2015-05-07 17:22:02 +03:00
John MacFarlane
472c1424ba
Deal with deprecation warning in Custom.
2015-05-05 12:46:20 -07:00
John MacFarlane
d19a347fd5
UTF8: Better handling of bare CRs in input files.
...
Previously we just stripped them out; now we convert
other line ending styles to LF line endings.
Closes #2132 .
2015-05-05 12:42:50 -07:00
John MacFarlane
db4d69a8cb
Merge pull request #2131 from nickbart1980/patch-2
...
Update README on in-field markup in biblio databases
2015-05-05 11:00:05 -07:00
John MacFarlane
6ad80db81a
Merge pull request #2134 from jlmuir/fix-user-guide-typos
...
Fix typos in User's Guide
2015-05-05 10:45:59 -07:00
J. Lewis Muir
6ebd01c493
Fix typos in User's Guide
2015-05-05 11:51:00 -05:00
nickbart1980
4297677ec6
Update README on in-field markup in biblio databases
...
Motivated by https://github.com/jgm/pandoc-citeproc/issues/124 .
2015-05-05 10:01:57 +00:00
John MacFarlane
1b44acf0c5
SelfContained: properly handle data URIs in css urls.
...
Also use a proper css parser (adds dependency on text-css).
Closes #2129 .
2015-05-04 16:00:28 -07:00
John MacFarlane
7979db0f77
Test updates for 15d16e8456
.
2015-05-04 10:05:11 -07:00
John MacFarlane
15d16e8456
LaTeX template: degrade gracefully if \paragraph
not defined.
2015-05-03 22:04:24 -07:00
John MacFarlane
64b1394fe2
Make sure a closing </div>
doesn't get included in a defn list item.
...
Closes #2127 .
2015-05-03 15:06:40 -07:00
John MacFarlane
8a77eb4c9c
LaTeX writer: Add a \label
in \hyperdef
for Div, Span.
...
Otherwise links don't work.
2015-05-02 17:58:16 -07:00
John MacFarlane
8245d672bd
Fixed tests for change to latex template.
2015-05-02 10:16:26 -07:00
John MacFarlane
f420325273
latex template: use providecommand for tightlist.
...
This avoids a conflict when memoir class is used.
Thanks to Joseph Harriott.
2015-05-02 09:09:11 -07:00
John MacFarlane
f1aaad9e86
EPUB writer: Use plain writer for metadata dc: fields.
...
This gives better results when we have, e.g. multiple paragraphs.
Note that tags aren't allowed in these fields.
Closes #2121 .
2015-05-01 22:36:38 -07:00
John MacFarlane
9b2f645e2a
SelfContained: cssURLs no longer tries to fetch fragment URLs.
...
The current test is: does the URL start with a `#`?
Closes #2121 .
2015-05-01 22:15:43 -07:00
John MacFarlane
4b2f469994
Merge pull request #2123 from hellofloat/master
...
Added woff2 to MIME types
2015-04-29 16:17:40 -07:00
Alfred Wechselberger
7031748a43
Added woff2 to MIME types
2015-04-29 14:10:30 -07:00
John MacFarlane
55b7afc674
HTML reader: Allow multiple colgroups in table.
...
Closes #2122 .
2015-04-29 12:05:38 -07:00
John MacFarlane
bc95b615b1
appveyor - removed a diagnostic echo.
2015-04-26 18:21:44 -07:00
John MacFarlane
f00641d629
appveyor - use cmd for 'git submodule update'.
2015-04-26 18:19:02 -07:00
John MacFarlane
38067aff75
appveyor - attempt to fix yml errors.
2015-04-26 18:08:19 -07:00
John MacFarlane
bab92c6ce4
appveyor - use powershell for commands.
...
Another try at getting path setting to work properly.
2015-04-26 17:57:24 -07:00
John MacFarlane
a721968045
appveyor - another attempt at setting the paths.
2015-04-26 16:03:51 -07:00
John MacFarlane
35b6f19bfb
appveyor.yml - set path in shell in addition to registry.
2015-04-26 15:46:53 -07:00
John MacFarlane
7b27cc6758
EPUB writer: Remove linear=no from cover itemref.
...
Closes #1609 .
2015-04-26 15:43:58 -07:00
John MacFarlane
107aa2497d
appveyor - force rewrite of path in registry.
2015-04-26 14:47:37 -07:00
John MacFarlane
b4c3e35af3
appveyor - set paths in registry.
2015-04-26 14:31:15 -07:00
John MacFarlane
bb8f001015
appveyor.yml - specify full ghc path.
2015-04-26 12:20:53 -07:00
John MacFarlane
3cd1d568ad
appveyor.yml - rearranged install and build scripts.
2015-04-26 12:01:57 -07:00
John MacFarlane
1139527160
Added appveyor.yml for Windows CI.
2015-04-26 11:37:37 -07:00
John MacFarlane
d9d88e58e1
Fixed regression with lists inside defintiion lists.
...
This fixes a regression (not in any released version) on
things like
hi
: - there
Closes #2098 .
2015-04-26 11:27:47 -07:00
John MacFarlane
2793d986dc
Merge pull request #2112 from lierdakil/issue2101
...
Custom Writer: Set foreign encoding to UTF-8
2015-04-26 11:16:50 -07:00
John MacFarlane
1868cb5e42
Updated copyright notices to -2015. Closes #2111 .
2015-04-26 10:18:29 -07:00
Nikolay Yakimov
a0ec3e85ad
Custom Writer: Set foreign encoding to UTF-8
...
Closes #2101 , #1634
Also factored out ByteString, since it's only used as an intermediate
representation.
2015-04-26 08:44:57 +03:00
John MacFarlane
fa76156d24
Added JOPTS to travis.
...
This way we can set -j2 only for GHC > 7.4.
2015-04-25 12:57:07 -07:00
John MacFarlane
cfd69548b3
Use -j2 for travis builds. (See #2110.)
2015-04-25 12:42:53 -07:00
John MacFarlane
d3009e2027
Merge pull request #2110 from timtylin/patch/travis-new-apt-syntax
...
Use the new Travis sudo-less syntax for APT dependencies
2015-04-25 10:46:19 -07:00
Tim Lin
0c1b87780f
updates travis apt installs to the new sudo-less syntax
...
New syntax is specified here: http://docs.travis-ci.com/user/apt/
2015-04-25 03:29:42 -07:00
John MacFarlane
095b05e4f9
EPUB tests: don't use joinPath, which varies across platforms.
...
Instead, use a forward-slash to join paths, regardless of the
platform. This matches the way MediaBag now works.
See
56e4ecab20 (commitcomment-10858449)
2015-04-22 17:38:59 -07:00
John MacFarlane
e1d6be4e30
LaTeX reader: recognize \newpage
as a block command.
2015-04-22 08:48:25 -07:00
John MacFarlane
2bca018201
Custom writer: use UTF-8 aware bytestring conversion.
...
This might help with #2101 .
2015-04-21 22:50:58 -07:00
John MacFarlane
eb50bf896c
Merge pull request #2099 from RyanGlScott/master
...
Bump zlib upper version bounds
2015-04-20 14:03:58 -07:00