John MacFarlane
7ada0d11aa
Allow travis ghc 8.0.2 cabal build to fail. It always times out.
2017-10-10 09:02:42 -07:00
John MacFarlane
4a7b039f2d
Travis: added some 'date' commands...
...
so we can try to see why builds are failing with timeout.
2017-10-09 09:08:33 -07:00
Alexander Krotov
4bfcbbfc30
FB2 writer: replace concatMap with cMap
2017-10-09 19:04:10 +03:00
Alexander Krotov
81d28412d0
hlint FB2 writer
2017-10-09 18:08:27 +03:00
John MacFarlane
8cd1e00bbc
Add test - closes #3958 .
2017-10-08 21:57:26 -07:00
John MacFarlane
7d2ff7ed6d
Shared.stringify, removeFormatting: handle Quoted better.
...
Previously we were losing the qutation marks in Quoted
elements. See #3958 .
2017-10-08 21:55:57 -07:00
John MacFarlane
ad13189c8f
LaTeX reader: don't treat "..." as Quoted.
...
This caused quotes to be omitted in `\texttt` contexts.
Closes #3958 .
However, a better fix would be to modify the
2017-10-08 21:11:58 -07:00
John MacFarlane
fdaae5aec5
Small logic fix.
2017-10-08 09:53:03 -07:00
Albert Krewinkel
f176ad6f21
Org reader: end footnotes after two blank lines
...
Footnotes can not only be terminated by the start of a new footnote or a
header, but also by two consecutive blank lines.
2017-10-08 14:17:26 +02:00
John MacFarlane
89f1362660
Use mathjax 2.7.2 by default.
2017-10-06 21:12:54 -07:00
John MacFarlane
c0b3f7fc60
Removed redundant import
2017-10-06 20:29:11 -07:00
John MacFarlane
50de421ec5
Merge pull request #3955 from bucklereed/read-latex-languages
...
LaTeX reader: read polyglossia/babel \text($LANG){...}.
2017-10-06 23:26:57 -04:00
bucklereed
c359bdd9b1
LaTeX reader: read polyglossia/babel \text($LANG){...}.
2017-10-06 12:17:50 +01:00
John MacFarlane
23eaf2a74f
KaTeX fixes:
...
* In Options.HTMLMathMethod, the KaTeX contsructor now takes only
one string (for the KaTeX base URL), rather than two [API change].
* The default URL has been updated to the latest version.
* The autoload script is now loaded by default.
2017-10-05 10:08:04 -07:00
Albert Krewinkel
12f8efe012
pandoc.lua: throw better error when pipe command fails
...
A table containing the error code, command, and command output is thrown
instead of just a string error message.
2017-10-05 11:41:59 +02:00
Albert Krewinkel
2262f005ce
Use hslua v0.9.0
2017-10-05 11:30:44 +02:00
Albert Krewinkel
0e54d51d89
lua-filters.md: fix link to module documentation
2017-10-04 13:20:41 +02:00
John MacFarlane
9b69e6bdf2
travis: try removing travis_wait.
2017-10-03 20:44:27 -07:00
John MacFarlane
e7ee5413b5
Use latest texmath.
2017-10-03 17:48:45 -07:00
John MacFarlane
d4f48e772d
Added abc.lua example to lua-filters documentation.
...
Also fixed docs for `pipe`.
2017-10-03 14:20:48 -07:00
John MacFarlane
c936714197
Use latest texmath.
2017-10-03 13:57:36 -07:00
John MacFarlane
6dbf8bab07
Merge pull request #3951 from greut/patch-1
...
Load Google Font using HTTPS by default
2017-10-03 16:43:55 -04:00
John MacFarlane
582169cdca
Merge pull request #3952 from tarleb/lua-pipe-wrapper
...
Lua pipe wrapper
2017-10-03 15:36:23 -04:00
John MacFarlane
d259e7e5b5
Use latest pandoc-citeproc for pkg build.
2017-10-03 12:00:15 -07:00
Albert Krewinkel
371f9b7084
pandoc.lua: use wrapper funciton for pipe command
...
The pipe command is wrapped in a lua function, throwing a lua error if
the command returns with an error. A wrapper is needed as Haskell
functions exposed to lua may not throw lua errors due to limitations of
hslua.
The error handling is written such that a table can be returned as an
error object in the future. This is potentially useful when finer
control is required while catching the error in lua code. Current
limitations of hslua require error objects to be strings.
2017-10-03 20:45:11 +02:00
John MacFarlane
aad9288f97
Travis: don't turn on -Werror for dependencies!
2017-10-03 11:35:55 -07:00
John MacFarlane
7a4ab4f3b5
Travis: don't build benchmarks on ghc 7.10.3 or 8.0.2.
...
The build is timing out, maybe this will help.
2017-10-03 11:20:44 -07:00
Yoan Blanc
66135ab970
Load Google Font using HTTPS by default
...
Otherwise they won't show up in current version of firefox/chromium.
2017-10-03 10:55:52 -05:00
Albert Krewinkel
9b750f7d87
Lua.PandocModule: promote addFunction to top level
...
This reduces some boilerplate.
2017-10-03 13:13:45 +02:00
John MacFarlane
5307868de5
Removed spuriously added test/pandoc.tix.
2017-10-02 21:29:00 -07:00
John MacFarlane
492f496842
Markdown reader: Fixed bug with indented code following raw LaTeX.
...
Closes #3947 .
2017-10-02 21:28:14 -07:00
Albert Krewinkel
514662e544
Org reader: support \n
export option
...
The `\n` export option turns all newlines in the text into hard
linebreaks.
Closes #3950
2017-10-02 23:11:58 +02:00
John MacFarlane
3e77ea4792
Lua: added 'pipe', which encapsulates Text.Pandoc.Process.pipeProcess.
...
This is hard to do in lua, so it's helpful to provide this.
2017-10-01 15:23:20 -07:00
John MacFarlane
4c3b3bf65a
Lua: move sha1 from pandoc.mediabag to pandoc.
2017-10-01 00:33:56 -07:00
John MacFarlane
8768f7e5b0
Lua: use sha1 instead of hashname.
...
Better to leave control over the extension to the user.
2017-09-30 23:15:43 -07:00
John MacFarlane
9451d83058
Lua: make fetch return mime type first and then content.
2017-09-30 23:00:14 -07:00
John MacFarlane
17583cd99d
Lua: simply mediabag module.
...
Now 'fetch' simply fetches content and mime type.
A new 'hashname' function is provided to get a filename based
on the sha1 hash of the contents and the mime type.
2017-09-30 22:54:12 -07:00
John MacFarlane
73c47a44d8
Lua: make lua.mediabag.fetch return filename and mime type.
...
This is necessary because you may need to insert the filename
into an image or link element.
2017-09-30 21:58:35 -07:00
John MacFarlane
896c288625
Lua filters: make sure whole CommonState is passed through...
...
to insertResource (`fetch`).
2017-09-30 17:20:44 -05:00
John MacFarlane
99aba1e788
EPUB writer: simplified some functions.
2017-09-30 17:19:07 -05:00
John MacFarlane
9004da4587
Removed unneeded import.
2017-09-30 17:18:37 -05:00
John MacFarlane
dfe816163c
Removed Verbosity and MediaBag params from makePDF.
...
They can be obtained from CommonState since we're
in PandocIO.
2017-09-30 17:17:39 -05:00
John MacFarlane
9ec458f39f
Text.Pandoc.Class - add getVerbosity.
2017-09-30 17:15:55 -05:00
John MacFarlane
f3a80034ff
Removed writerSourceURL, add source URL to common state.
...
Removed `writerSourceURL` from `WriterOptions` (API change).
Added `stSourceURL` to `CommonState`.
It is set automatically by `setInputFiles`.
Text.Pandoc.Class now exports `setInputFiles`, `setOutputFile`.
The type of `getInputFiles` has changed; it now returns `[FilePath]`
instead of `Maybe [FilePath]`.
Functions in Class that formerly took the source URL as a parameter
now have one fewer parameter (`fetchItem`, `downloadOrRead`,
`setMediaResource`, `fillMediaBag`).
Removed `WriterOptions` parameter from `makeSelfContained` in
`SelfContained`.
2017-09-30 16:11:20 -05:00
John MacFarlane
9b7d652ab7
Merge pull request #3945 from tarleb/lua-mediabag
...
Lua mediabag module
2017-09-30 10:50:02 -04:00
Albert Krewinkel
c363519302
Provide make target to update lua module docs ( #3946 )
...
The pandoc module documentation in doc/lua-filters.md was automatically
generated from `data/pandoc.lua`. A make target is provided which uses
a lua filter to update the documentation.
2017-09-30 10:45:31 -04:00
Albert Krewinkel
53b6ffe9b8
doc/lua-filters.md: document mediabag submodule
2017-09-30 15:09:24 +02:00
Albert Krewinkel
358e8c2897
Run Lua filters before extracting media
...
This enables users to change the media files being extracted via lua
filters.
2017-09-30 09:57:03 +02:00
Albert Krewinkel
2f47e04206
Text.Pandoc.Lua: add mediabag submodule
2017-09-30 09:57:03 +02:00
John MacFarlane
950c68c835
Use latest skylighting.
2017-09-28 09:22:32 -07:00