aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-10-11appveyor tweak - maybe this will help with the build issue.John MacFarlane1-1/+1
2017-10-11FB2 Writer: format LineBlock as poemAlexander Krotov1-2/+6
Previously writer produced one paragraph with <empty-line/> elements, which are not allowed inside <p> according to FB2 schema.
2017-10-10Use latest pandoc-citeproc in stack.pkg.yaml.John MacFarlane1-1/+1
2017-10-10Merge pull request #3963 from agusmba/issue3901John MacFarlane1-0/+1
docx writer - activate evenAndOddHeaders from reference doc
2017-10-10Allow travis ghc 8.0.2 cabal build to fail. It always times out.John MacFarlane1-0/+2
2017-10-10docx writer - activate evenAndOddHeaders from reference docAgustín Martín Barbero1-0/+1
Fixes #3901 by checking for the evenAndOddHeaders mark in the reference doc, and copying it to the resulting docx if present.
2017-10-09Travis: added some 'date' commands...John MacFarlane1-0/+4
so we can try to see why builds are failing with timeout.
2017-10-09FB2 writer: replace concatMap with cMapAlexander Krotov1-10/+10
2017-10-09hlint FB2 writerAlexander Krotov1-50/+50
2017-10-08Add test - closes #3958.John MacFarlane1-0/+20
2017-10-08Shared.stringify, removeFormatting: handle Quoted better.John MacFarlane1-2/+9
Previously we were losing the qutation marks in Quoted elements. See #3958.
2017-10-08LaTeX reader: don't treat "..." as Quoted.John MacFarlane1-2/+0
This caused quotes to be omitted in `\texttt` contexts. Closes #3958. However, a better fix would be to modify the
2017-10-08Small logic fix.John MacFarlane1-2/+1
2017-10-08Org reader: end footnotes after two blank linesAlbert Krewinkel2-63/+79
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-06Use mathjax 2.7.2 by default.John MacFarlane1-1/+1
2017-10-06Removed redundant importJohn MacFarlane1-1/+0
2017-10-06Merge pull request #3955 from bucklereed/read-latex-languagesJohn MacFarlane2-113/+149
LaTeX reader: read polyglossia/babel \text($LANG){...}.
2017-10-06LaTeX reader: read polyglossia/babel \text($LANG){...}.bucklereed2-113/+149
2017-10-05KaTeX fixes:John MacFarlane5-44/+22
* 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-05pandoc.lua: throw better error when pipe command failsAlbert Krewinkel3-6/+11
A table containing the error code, command, and command output is thrown instead of just a string error message.
2017-10-05Use hslua v0.9.0Albert Krewinkel5-17/+6
2017-10-04lua-filters.md: fix link to module documentationAlbert Krewinkel1-1/+1
2017-10-03travis: try removing travis_wait.John MacFarlane1-1/+0
2017-10-03Use latest texmath.John MacFarlane2-2/+2
2017-10-03Added abc.lua example to lua-filters documentation.John MacFarlane1-14/+61
Also fixed docs for `pipe`.
2017-10-03Use latest texmath.John MacFarlane2-2/+2
2017-10-03Merge pull request #3951 from greut/patch-1John MacFarlane1-1/+1
Load Google Font using HTTPS by default
2017-10-03Merge pull request #3952 from tarleb/lua-pipe-wrapperJohn MacFarlane2-15/+34
Lua pipe wrapper
2017-10-03Use latest pandoc-citeproc for pkg build.John MacFarlane1-1/+1
2017-10-03pandoc.lua: use wrapper funciton for pipe commandAlbert Krewinkel2-1/+24
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-03Travis: don't turn on -Werror for dependencies!John MacFarlane1-1/+1
2017-10-03Travis: don't build benchmarks on ghc 7.10.3 or 8.0.2.John MacFarlane1-12/+10
The build is timing out, maybe this will help.
2017-10-03Load Google Font using HTTPS by defaultYoan Blanc1-1/+1
Otherwise they won't show up in current version of firefox/chromium.
2017-10-03Lua.PandocModule: promote addFunction to top levelAlbert Krewinkel2-15/+11
This reduces some boilerplate.
2017-10-02Removed spuriously added test/pandoc.tix.John MacFarlane1-1/+0
2017-10-02Markdown reader: Fixed bug with indented code following raw LaTeX.John MacFarlane2-1/+12
Closes #3947.
2017-10-02Org reader: support `\n` export optionAlbert Krewinkel4-2/+12
The `\n` export option turns all newlines in the text into hard linebreaks. Closes #3950
2017-10-01Lua: added 'pipe', which encapsulates Text.Pandoc.Process.pipeProcess.John MacFarlane2-0/+31
This is hard to do in lua, so it's helpful to provide this.
2017-10-01Lua: move sha1 from pandoc.mediabag to pandoc.John MacFarlane2-13/+16
2017-09-30Lua: use sha1 instead of hashname.John MacFarlane2-18/+9
Better to leave control over the extension to the user.
2017-09-30Lua: make fetch return mime type first and then content.John MacFarlane2-1/+10
2017-09-30Lua: simply mediabag module.John MacFarlane2-19/+43
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-30Lua: make lua.mediabag.fetch return filename and mime type.John MacFarlane2-1/+7
This is necessary because you may need to insert the filename into an image or link element.
2017-09-30Lua filters: make sure whole CommonState is passed through...John MacFarlane2-14/+22
to insertResource (`fetch`).
2017-09-30EPUB writer: simplified some functions.John MacFarlane1-24/+18
2017-09-30Removed unneeded import.John MacFarlane1-1/+0
2017-09-30Removed Verbosity and MediaBag params from makePDF.John MacFarlane2-36/+29
They can be obtained from CommonState since we're in PandocIO.
2017-09-30Text.Pandoc.Class - add getVerbosity.John MacFarlane1-0/+5
2017-09-30Removed writerSourceURL, add source URL to common state.John MacFarlane17-123/+118
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-30Merge pull request #3945 from tarleb/lua-mediabagJohn MacFarlane6-41/+252
Lua mediabag module