aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Readers/Odt.hs
AgeCommit message (Collapse)AuthorFilesLines
2017-01-25Made `smart` extension default for pandoc markdown.John MacFarlane1-8/+8
Updated tests.
2017-01-25Added ReaderOptions parameter to readNative.John MacFarlane1-1/+1
This makes it similar to the other readers -- even though ReaderOptions is essentially ignored, the uniformity is nice.
2017-01-25ODT test: remove unnecessary imports.Jesse Rosenthal1-1/+1
2017-01-25Update all tests to use new readers and error structure.Jesse Rosenthal1-6/+5
2017-01-25Changed readNative to use PandocMonad.John MacFarlane1-1/+3
2017-01-25Update tests to work with runPure.John MacFarlane1-1/+1
2016-12-13Test case for issue #3223 (#3308)hubertp-lshift1-0/+1
2016-12-13Test case for bug 2752 (#3306)hubertp-lshift1-0/+1
2016-11-30Options: Removed writerStandalone, made writerTemplate a Maybe.John MacFarlane1-3/+3
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]
2016-11-26[odt] Infer table's caption from the paragraph (#3224)hubertp-lshift1-0/+1
ODT's reader always put empty captions for the parsed tables. This commit 1) checks paragraphs that follow the table definition 2) treats specially a paragraph with a style named 'Table' 3) does some postprocessing of the paragraphs that combines tables followed immediately by captions The ODT writer used 'TableCaption' style name for the caption paragraph. This commit follows the open office approach which allows for appending captions to table but uses a built-in style named 'Table' instead of 'TableCaption'. Any users of odt format (both writer and reader) are therefore required to change the style's name to 'Table', if necessary.
2016-11-08Inline code when text has a special styleHubert Plociniczak1-0/+1
When a piece of text has a text 'Source_Text' then we assume that this is a piece of the document that represents a code that needs to be inlined. Addapted an odt writer to also reflect that change; previously it was just writing a 'preformatted' text using a non-distinguishable font style. Code blocks are still not recognized by the ODT reader. That's a separate issue.
2016-10-24Export Text.Pandoc.Error in Text.Pandoc.John MacFarlane1-6/+1
[API change]
2016-10-17Infer caption from the text following the imgHubert Plociniczak1-2/+4
Frame can contain other frames with the text boxes. This is something that has not been considered before and meant that the whole construction of images was broken in those cases. Also the captions were fixed/ignored.
2015-11-09Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane1-2/+1
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
2015-11-08Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane1-1/+2
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
2015-07-23Added odt readerMarLinn1-0/+165
Fully implemented features: * Paragraphs * Headers * Basic styling * Unordered lists * Ordered lists * External Links * Internal Links * Footnotes, Endnotes * Blockquotes Partly implemented features: * Citations Very basic, but pandoc can't do much more * Tables No headers, no sizing, limited styling