summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/FB2.hs
Commit message (Collapse)AuthorAge
* Revert "Added page breaks into Pandoc."John MacFarlane2017-01-25
| | | | This reverts commit f02a12aff638fa2339192231b8f601bffdfe3e14.
* Text.Pandoc.Shared: Removed fetchItem, fetchItem'.John MacFarlane2017-01-25
| | | | | Made changes where these are used, so that the version of fetchItem from PandocMonad can be used instead.
* Fix rebasing errors.Jesse Rosenthal2017-01-25
|
* Unify Errors.Jesse Rosenthal2017-01-25
|
* Implement Errors in PandocMonadJesse Rosenthal2017-01-25
| | | | | | | | | | | | | | | Errors can be thrown purely with `throwError`. At the moment there are only three kinds of errors: 1. PandocFileReadError FilePath (for problems reading a file from the filesystem) 2. PandocShouldNeverHappenError String (for stuff that should never happen but we need to pattern-match anyway) 3. PandocSomeError String (a grab bag of everything else) Of course, we need to subdivide the third item in this list.
* Convert writers to use PandocMonad typeclass.Jesse Rosenthal2017-01-25
| | | | Instead of Free Monad with runIO
* Finish pure writer of FB2.Jesse Rosenthal2017-01-25
|
* FB2 writer: Rewrite image-fetching to use fetchItem.Jesse Rosenthal2017-01-25
| | | | | This uses the function from shared, which will allow us to convert it over to the free monad.
* Continue refactoring FB2 writer.Jesse Rosenthal2017-01-25
|
* FB2 writer: bring functions to toplevel.Jesse Rosenthal2017-01-25
| | | | | | 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.
* Adds support for pagebreaks (when it makes sense)Hubert Plociniczak2017-01-25
| | | | | | | 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.
* Options: Removed writerStandalone, made writerTemplate a Maybe.John MacFarlane2016-11-30
| | | | | | | | Previously setting writerStandalone = True did nothing unless a template was provided in writerTemplate. Now a fragment will be generated if writerTemplate is Nothing; otherwise, the specified template will be used and standalone output generated. [API change]
* Add support for the LineBlock element to writersAlbert Krewinkel2016-10-13
| | | | | | | | | | | | | | | | | The following markup features are used to output the lines of the `LineBlock` element: - AsciiDoc: a `[verse]` block, - ConTeXt: text surrounded by `\startlines` and `\endlines`, - HTML: `div` with an per-element style setting to interpret the content as pre-wrapped, - Markdown: line blocks if the `line_blocks` extension is enabled, a simple paragraph with hard linebreaks otherwise, - Org: VERSE block, - RST: a line block, and - all other formats: a paragraph, containing hard linebreaks between lines. Custom lua writers should be updated to use the `LineBlock` element.
* FB2 writer: support SoftBreak.John MacFarlane2015-12-12
| | | | This was omitted earlier.
* Implemented SoftBreak and new `--wrap` option.John MacFarlane2015-12-11
| | | | | | | | | | | | | | | | Added threefold wrapping option. * Command line option: deprecated `--no-wrap`, added `--wrap=[auto|none|preserve]` * Added WrapOption, exported from Text.Pandoc.Options * Changed type of writerWrapText in WriterOptions from Bool to WrapOption. * Modified Text.Pandoc.Shared functions for SoftBreak. * Supported SoftBreak in writers. * Updated tests. * Updated README. Closes #1701.
* Updated readers, writers and README for link attributemb212015-08-07
|
* Updated readers and writers for new image attribute parameter.John MacFarlane2015-08-07
| | | | (mb21)
* FB2 writer: Add newline to output.John MacFarlane2014-12-15
|
* Add PatternGuards pragmas.Artyom Kazak2014-08-04
|
* Remove dangling `where` from one function.Artyom Kazak2014-08-04
|
* Use `stripPrefix` where appropriate.Artyom Kazak2014-08-04
|
* Correctly implement capitalisation.Artyom Kazak2014-08-03
| | | | | | | | Using `map toUpper` to capitalise text is wrong, as e.g. “Straße” should be converted to “STRASSE”, which is 1 character longer. This commit adds a `capitalize` function and replaces 2 identical implementations in different modules (`toCaps` and `capitalize`) with it.
* Use isHeaderBlock from Shared rather than defining it anew...John MacFarlane2014-01-02
|
* Use walk, walkM in place of bottomUp, bottomUpM when possible.John MacFarlane2013-08-10
| | | | They are significantly faster.
* Preliminary support for new Div and Span elements in writers.John MacFarlane2013-08-08
| | | | | Currently these are "transparent" containers, except in HTML, where they produce div and span elements with attributes.
* Use 'fig:' instead of '\SOH' in title to indicate figure.John MacFarlane2013-01-15
| | | | Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
* Implemented Ext_implicit_figures.John MacFarlane2013-01-14
| | | | | | | | | | | | * In markdown reader, add a '\1' character to the beginning of the title of an image that is alone in its paragraph, if implicit_figures extension is selected. * In writers, check for Para [Image alt (src,'\1':tit)] and treat it as a figure if possible. * Updated tests. This is a bit of a hack, but it allows us to make implicit_figures an extension of the markdown reader, rather than the writers.
* Added Attr field to Header.John MacFarlane2013-01-09
| | | | | | | | | | Previously header ids were autogenerated by the writers. Now they are generated (unless supplied explicitly) in the markdown parser, if the `header_identifiers` extension is selected. In addition, the textile reader now supports id attributes on headers.
* Moved WriterOptions and associated types Shared -> Options.John MacFarlane2012-07-26
|
* FB2: support images embedded as data URIs + tests.Sergey Astanin2012-07-22
|
* Added a new FictionBook2 (FB2) writer.Sergey Astanin2012-07-22