Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-01-25 | Pandoc.hs: Run `runIOorExplode` on IO functions. | Jesse Rosenthal | 1 | -9/+17 | |
This is a compatibility layer to reintroduce something like the old errors into the functions. | |||||
2017-01-25 | Make opaque typeclasses PandocPure and PandocIO | Jesse Rosenthal | 1 | -33/+75 | |
2017-01-25 | Class: Specify Functor and Applicative | Jesse Rosenthal | 1 | -1/+1 | |
We're still compiling for 7.8 which is pre-AMP, so let's just be explicit about it so we can use applicative notation. | |||||
2017-01-25 | Remove Text.Pandoc.Free | Jesse Rosenthal | 2 | -270/+0 | |
2017-01-25 | Convert writers to use PandocMonad typeclass. | Jesse Rosenthal | 6 | -142/+122 | |
Instead of Free Monad with runIO | |||||
2017-01-25 | Introduce PandocMonad typeclass. | Jesse Rosenthal | 2 | -2/+205 | |
This can be instantiated by both an IO monad or a pure State monad. | |||||
2017-01-25 | Remove GetPOSIXTime from Free monad. | Jesse Rosenthal | 1 | -7/+2 | |
We still export a P.getPOSIXTime function, but it's just internally defined in terms of P.getCurrentTime. | |||||
2017-01-25 | Free: Remove readFileUTF8. | Jesse Rosenthal | 2 | -13/+1 | |
This is just defined in term of a bytestring, so we convert when necessary. | |||||
2017-01-25 | Remove readFileStrict. | Jesse Rosenthal | 2 | -13/+2 | |
We only used it once, and then immediately converted to lazy. | |||||
2017-01-25 | Remove IO UUID functions. | Jesse Rosenthal | 2 | -17/+2 | |
2017-01-25 | Write Pure uuid function taking stdgen. | Jesse Rosenthal | 1 | -11/+12 | |
We're trying to cut down the necessarily IO functions. Since we alerady have a newStdGen function, we don't need this one. | |||||
2017-01-25 | ODT Writer: fix compiler complaint. | Jesse Rosenthal | 1 | -1/+0 | |
2017-01-25 | Free: Add Typeable instance to PandocActionError | Jesse Rosenthal | 1 | -2/+3 | |
2017-01-25 | Finish pure writer of FB2. | Jesse Rosenthal | 1 | -10/+17 | |
2017-01-25 | FB2 writer: Rewrite image-fetching to use fetchItem. | Jesse Rosenthal | 1 | -43/+11 | |
This uses the function from shared, which will allow us to convert it over to the free monad. | |||||
2017-01-25 | Continue refactoring FB2 writer. | Jesse Rosenthal | 1 | -8/+14 | |
2017-01-25 | FB2 writer: bring functions to toplevel. | Jesse Rosenthal | 1 | -47/+53 | |
This is the first of a number of changes to bring the FB2 writer a bit closer to the idioms used elsewhere in pandoc, so it can be more easily converted to using the pure functions from Free. | |||||
2017-01-25 | Make pure rtf writer using free. | Jesse Rosenthal | 1 | -4/+13 | |
2017-01-25 | Fix up compiler warnings. | Jesse Rosenthal | 1 | -1/+3 | |
Export TestState and TestEnv, and remove redundant import. | |||||
2017-01-25 | Implement runTest functions. | Jesse Rosenthal | 7 | -85/+177 | |
These work with a State monad and a Reader monad to produce deterministic results. It can probably be simplified somewhat. | |||||
2017-01-25 | Remove IORef from EPUB writer. | Jesse Rosenthal | 1 | -51/+62 | |
2017-01-25 | Remove IORef from ODT writer. | Jesse Rosenthal | 1 | -24/+38 | |
We want pure writers, so IORef shouldn't be in there. We switch to using a normal State Monad. If this produces performance problems, we can look into trying STRefs, but that seems like unnecessary complication at the moment. | |||||
2017-01-25 | Introduce pure versions of IO Writers. | Jesse Rosenthal | 4 | -90/+124 | |
Using Text.Pandoc.Free, introduce pure versions of Docx, EPUB, ICML, and ODT writers. Each of the pure versions is exported along with the IO version (produced by running `runIO` on the pure reader). Ideally, this should make the writers easier to test. | |||||
2017-01-25 | New Free module, with pure versions of IO funcs | Jesse Rosenthal | 2 | -1/+211 | |
Introduce a new module, Text.Pandoc.Free, with pure versions, based on the free monad, of numerous IO functions used in writers and readers. These functions are in a pure Monad (PandocAction). PandocAction takes as a parameter the type of IORefs in it. It can be aliased in individual writers and readers to avoid this parameter. Note that this means that at the moment a reader can only use one type of IORef. If possible, it would be nice to remove this limitation. | |||||
2017-01-25 | Adds support for pagebreaks (when it makes sense) | Hubert Plociniczak | 22 | -11/+48 | |
Update all writers to take into account page breaks. A straightforwad, far from complete, implementation of page breaks in selected writers. Readers will have to follow in the future as well. | |||||
2017-01-25 | Added page breaks into Pandoc. | Hubert Plociniczak | 3 | -13/+61 | |
This requires an updated version of pandoc-types that introduces PageBreak definition. Not that this initial commit only introduces ODT pagebreaks and distinguishes for it page breaks before, after, or both, the paragraph, as read from the style definition. | |||||
2017-01-25 | Copied a few changes from default.latex to default.beamer. | John MacFarlane | 1 | -12/+7 | |
(Wandmalfarbe) | |||||
2017-01-25 | Update list of listings languages in Highlighting. | John MacFarlane | 1 | -54/+103 | |
This allows more languages to be used when using the `--listings` option. Closes #3374. | |||||
2017-01-24 | OpenDocument writer: small refactoring. | John MacFarlane | 1 | -8/+11 | |
Removed separate 'parent' param in paraStyle. | |||||
2017-01-24 | Update latex writer test for template change. | John MacFarlane | 1 | -1/+1 | |
2017-01-24 | Changed position of \VerbatimNotes and fancyvrb in latex, beamer templates. | John MacFarlane | 1 | -7/+12 | |
This fixes hyperlinks on footnotes in documents that contain verbatim in notes. (Note: the beamer template was updated to match the LaTeX template, but at this point verbatim in notes seems not to work in beamer.) Closes #3361. | |||||
2017-01-24 | travis: catch #3372 (#3373) | ickc | 1 | -0/+5 | |
2017-01-23 | OpenDocument writer: don't profilerate text styles unnecessarily. | John MacFarlane | 2 | -137/+102 | |
This change makes the writer create only as many temporary text styles as are absolutely necessary. It also consolidates adjacent nodes with the same style. Closes #3371. | |||||
2017-01-21 | Use skylighting 0.1.1.1 in stack.yaml. | John MacFarlane | 4 | -4/+6 | |
2017-01-19 | Org reader: allow short hand for single-line raw blocks | Albert Krewinkel | 3 | -8/+29 | |
Single-line raw blocks can be given via `#+FORMAT: raw line`, where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`. Closes: #3366 | |||||
2017-01-19 | windows stack.yaml - use latest skylighting. | John MacFarlane | 1 | -1/+1 | |
2017-01-19 | Some fixes to permit breezeDark style. | John MacFarlane | 1 | -2/+2 | |
2017-01-19 | Add breezeDark to the list of highlighting styles. | John MacFarlane | 2 | -3/+5 | |
2017-01-19 | Use skylighting 0.1.1. | John MacFarlane | 2 | -4/+4 | |
Closes #3363. | |||||
2017-01-19 | MediaWiki reader: improved handling of display math. | John MacFarlane | 1 | -2/+3 | |
Sometimes display math is indented with more than one colon. Previously we handled these cases badly, generating definition lists and missing the math. Closes #3362. | |||||
2017-01-18 | Fix sample.lua barfing on Raw data (#3358) | bumper314 | 1 | -0/+4 | |
* Fix for "pandoc: user error (Incorrect result type (string expected, got nil))." when the source format contains Raw data. * Update sample.lua | |||||
2017-01-17 | travis: download stack only in stack BUILD (#3357) | ickc | 1 | -8/+9 | |
2017-01-17 | fix internal link in INSTALL.md | Mauro Bieg | 1 | -1/+1 | |
2017-01-15 | Clarify that blank space is needed around footnotes. | John MacFarlane | 1 | -1/+3 | |
Closes #3352. | |||||
2017-01-15 | Rearrange and extend badges in README (#3354) | Albert Krewinkel | 1 | -4/+6 | |
* Reorganize badges to get a more harmonic look * Add homebrew badge * Add badge for pandoc-discuss google group | |||||
2017-01-13 | Fixed typo (#3351) | Alexey Rogachev | 1 | -1/+1 | |
2017-01-10 | Allow vector 0.12.0.0. | John MacFarlane | 1 | -1/+1 | |
2017-01-10 | LaTeX template: Add hyphen option to url package. | John MacFarlane | 5 | -7/+11 | |
2017-01-08 | Fixed -f markdown_github-hard_line_breaks+escaped_line_breaks. | John MacFarlane | 1 | -0/+1 | |
Previously this did not properly enable escaped line breaks. Closes #3341. | |||||
2017-01-07 | Added instructions for manual install from oxs, win packages. | John MacFarlane | 1 | -0/+22 | |