aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-01-25FB2 writer: Rewrite image-fetching to use fetchItem.Jesse Rosenthal1-43/+11
This uses the function from shared, which will allow us to convert it over to the free monad.
2017-01-25Continue refactoring FB2 writer.Jesse Rosenthal1-8/+14
2017-01-25FB2 writer: bring functions to toplevel.Jesse Rosenthal1-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-25Make pure rtf writer using free.Jesse Rosenthal1-4/+13
2017-01-25Fix up compiler warnings.Jesse Rosenthal1-1/+3
Export TestState and TestEnv, and remove redundant import.
2017-01-25Implement runTest functions.Jesse Rosenthal7-85/+177
These work with a State monad and a Reader monad to produce deterministic results. It can probably be simplified somewhat.
2017-01-25Remove IORef from EPUB writer.Jesse Rosenthal1-51/+62
2017-01-25Remove IORef from ODT writer.Jesse Rosenthal1-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-25Introduce pure versions of IO Writers.Jesse Rosenthal4-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-25New Free module, with pure versions of IO funcsJesse Rosenthal2-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-25Adds support for pagebreaks (when it makes sense)Hubert Plociniczak22-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-25Added page breaks into Pandoc.Hubert Plociniczak3-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-25Copied a few changes from default.latex to default.beamer.John MacFarlane1-12/+7
(Wandmalfarbe)
2017-01-25Update list of listings languages in Highlighting.John MacFarlane1-54/+103
This allows more languages to be used when using the `--listings` option. Closes #3374.
2017-01-24OpenDocument writer: small refactoring.John MacFarlane1-8/+11
Removed separate 'parent' param in paraStyle.
2017-01-24Update latex writer test for template change.John MacFarlane1-1/+1
2017-01-24Changed position of \VerbatimNotes and fancyvrb in latex, beamer templates.John MacFarlane1-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-24travis: catch #3372 (#3373)ickc1-0/+5
2017-01-23OpenDocument writer: don't profilerate text styles unnecessarily.John MacFarlane2-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-21Use skylighting 0.1.1.1 in stack.yaml.John MacFarlane4-4/+6
2017-01-19Org reader: allow short hand for single-line raw blocksAlbert Krewinkel3-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-19windows stack.yaml - use latest skylighting.John MacFarlane1-1/+1
2017-01-19Some fixes to permit breezeDark style.John MacFarlane1-2/+2
2017-01-19Add breezeDark to the list of highlighting styles.John MacFarlane2-3/+5
2017-01-19Use skylighting 0.1.1.John MacFarlane2-4/+4
Closes #3363.
2017-01-19MediaWiki reader: improved handling of display math.John MacFarlane1-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-18Fix sample.lua barfing on Raw data (#3358)bumper3141-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-17travis: download stack only in stack BUILD (#3357)ickc1-8/+9
2017-01-17fix internal link in INSTALL.mdMauro Bieg1-1/+1
2017-01-15Clarify that blank space is needed around footnotes.John MacFarlane1-1/+3
Closes #3352.
2017-01-15Rearrange and extend badges in README (#3354)Albert Krewinkel1-4/+6
* Reorganize badges to get a more harmonic look * Add homebrew badge * Add badge for pandoc-discuss google group
2017-01-13Fixed typo (#3351)Alexey Rogachev1-1/+1
2017-01-10Allow vector 0.12.0.0.John MacFarlane1-1/+1
2017-01-10LaTeX template: Add hyphen option to url package.John MacFarlane5-7/+11
2017-01-08Fixed -f markdown_github-hard_line_breaks+escaped_line_breaks.John MacFarlane1-0/+1
Previously this did not properly enable escaped line breaks. Closes #3341.
2017-01-07Added instructions for manual install from oxs, win packages.John MacFarlane1-0/+22
2017-01-06Remove pipe char irking the haddock coverage toolAlbert Krewinkel1-1/+1
Haddock documentation strings must be associated with functions. Remove pipe char from a comment that was moved into a `do` block in `Readers/Org/Inlines.hs`.
2017-01-06Org reader: accept org-ref citations followed by commasAlbert Krewinkel2-15/+28
Bugfix for an issue which, whenever the citation was immediately followed by a comma, prevented correct parsing of org-ref citations.
2017-01-05Org reader: ensure emphasis markup can be nestedAlbert Krewinkel2-0/+7
Nested emphasis markup (e.g. `/*strong and emphasized*/`) was interpreted incorrectly in that the inner markup was not recognized.
2017-01-05MediaWiki reader: Fix quotation mark parsing (#3336)tgkokk1-6/+3
Change MediaWiki reader's behavior when the smart option is parsed to match other readers' behavior. Fix #2012.
2017-01-03LaTeX template: allow passing `microtypeoptions` to microtype.John MacFarlane6-11/+14
Thanks to Vaclav Haisman.
2017-01-02Allow aeson 1.1.John MacFarlane1-2/+2
2017-01-01Indent code on the installation page. (#3335)Bheesham Persaud1-5/+5
Previously, not all code on the installation page was highlighted/wrapped in code blocks due to incorrect indentation.
2016-12-31Add '@*' usage (#3333)John Muccigrosso1-0/+8
* Add '@*' usage Added to nocite section to add the wildcard functionality. * Restoring accented characters. Removed trailing whitespace in new text too. * Removing unneeded single quotes.
2016-12-30Updated docbook5 writer test for new template.John MacFarlane1-1/+3
2016-12-30Travis: fix false positives and speed up dist build by avoiding tests.John MacFarlane1-7/+8
2016-12-30docbook5template: fix namespace declarations (Mauro Bieg).John MacFarlane1-7/+7
2016-12-30DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330)Mauro Bieg2-32/+35
2016-12-24HTML writer: don't process pars with empty RawInline, fixes #1040 (#3327)Mauro Bieg1-3/+8
2016-12-24Travis: add path to happy to path.John MacFarlane1-1/+1