aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2011-01-12test-pandoc: Fixed + and - in diff output, which were reversed.John MacFarlane1-2/+2
2011-01-12test-pandoc: More diff-like diffs in case of test failure.John MacFarlane1-5/+5
2011-01-12Improvements to test suite.John MacFarlane4-12/+94
+ You can now specify glob patterns after 'cabal test'; e.g. 'cabal test latex' will only run the latex tests. + Instead of detecting highlighting support in Setup.hs, we now detect it in test-pandoc, by looking to see if 'languages' is null. + We now verify the lhs readers against the lhs-test.native, normalizing with 'normalize'. This makes more sense than verifying against HTML, which also brings in the HTML writer. + Added lhsn-test.nohl.{html,html+lhs}, so we can do the lhs tests whether or not highlighting has been installed.
2011-01-11Removed outdated comments.Nathan Gass1-12/+0
2011-01-11Moved test-pandoc.hs to tests directory.Nathan Gass1-0/+197
2011-01-07LaTeX reader: Support simple tables.John MacFarlane1-1/+7
2011-01-06pandoc: Add newline to output unless standalone.John MacFarlane21-10/+21
This avoids output that does not end with a newline, which is inconvenient when working with many tools. Updated tests accordingly.
2011-01-06LHS test changes for new wrapping & highlighting-kate version.John MacFarlane8-34/+69
2011-01-06Fixed lhs-test.markdown for new wrapping.John MacFarlane1-8/+11
2011-01-06LaTeX reader: allow spaces btw \\begin or \\end and {.John MacFarlane1-1/+1
2011-01-01Fixed regression in markdown reader.John MacFarlane3-201/+201
'(_hi_)' was being parsed with literal underscores (no emphasis). The fix: the 'str' parser now only parses alphanumerics and embedded underscores. All other symbols are handled by the 'symbol' parser. This has a slight effect on the AST, since you'll get [Str "hi",Str ":"] insntead of [Str "hi:"]. But there should not be a visible effect in any of the writers. Thanks to gwern for pointing out the regression.
2010-12-30New HTML reader using tagsoup as a lexer.John MacFarlane2-8/+8
* The new reader is faster and more accurate. * API changes for Text.Pandoc.Readers.HTML: - removed rawHtmlBlock, anyHtmlBlockTag, anyHtmlInlineTag, anyHtmlTag, anyHtmlEndTag, htmlEndTag, extractTagType, htmlBlockElement, htmlComment - added htmlTag, htmlInBalanced, isInlineTag, isBlockTag, isTextTag * tagsoup is a new dependency. * Text.Pandoc.Parsing: Generalized type on readWith. * Benchmark.hs: Added length calculation to force full evaluation. * Updated HTML reader tests. * Updated markdown and textile readers to use the functions from the HTML reader. * Note: The markdown reader now correctly handles some cases it did not before. For example: <hr/> is reproduced without adding a space. <script> a = '<b>'; </script> is parsed correctly.
2010-12-22Made --smart work with HTML reader.John MacFarlane1-71/+71
It did not work before, because - and quotes were gobbled up by the str parser.
2010-12-22Texinfo writer: Updated to use Pretty.John MacFarlane2-16/+1
2010-12-22Man writer: updated to use Pretty.John MacFarlane2-28/+20
2010-12-21OpenDocument writer: Updated to use Pretty.John MacFarlane2-132/+302
2010-12-21Docbook writer: Updated to use Pretty.John MacFarlane1-127/+106
2010-12-20Markdown writer: use \ for newline instead of two spaces at eol.John MacFarlane1-1/+1
(Unless --strict.)
2010-12-20ConTeXt writer: Updated to use Text.Pandoc.Pretty.John MacFarlane2-89/+80
2010-12-19Fixed markdown-citations.ieee.txt.John MacFarlane1-1/+1
2010-12-19Fixed markdown-citations.txt.John MacFarlane1-3/+1
2010-12-19Fixed biblatex/natbib citation writer tests.John MacFarlane2-32/+2
2010-12-19LaTeX writer: Modified to use Pretty.John MacFarlane1-72/+35
Improved footnote formatting, removed spurious blank lines.
2010-12-18LaTeX writer: Use \paragraph, \subparagraph for level 4,5 headers.John MacFarlane1-2/+2
2010-12-17Added new prettyprinting module.John MacFarlane12-583/+278
* Added Text.Pandoc.Pretty. This is better suited for pandoc than the 'pretty' package. One advantage is that we now get proper wrapping; Emph [Inline] is no longer treated as a big unwrappable unit. Previously we only got breaks for spaces at the "outer level." We can also more easily avoid doubled blank lines. Performance is significantly better as well. * Removed Text.Pandoc.Blocks. Text.Pandoc.Pretty allows you to define blocks and concatenate them. * Modified markdown, RST, org readers to use Text.Pandoc.Pretty instead of Text.PrettyPrint.HughesPJ. * Text.Pandoc.Shared: Added writerColumns to WriterOptions. * Markdown, RST, Org writers now break text at writerColumns. * Added --columns command-line option, which sets stColumns and writerColumns. * Table parsing: If the size of the header > stColumns, use the header size as 100% for purposes of calculating relative widths of columns.
2010-12-15Added 'tests' Cabal flag.John MacFarlane1-220/+0
+ This ensures that test-pandoc gets built. + 'cabal test' now runs this. + The old tests/RunTests.hs has been removed, and src/test-pandoc.hs added.
2010-12-15Use top-level header at end as bibliography title for natbib and biblatex ↵Nathan Gass2-3/+2
output.
2010-12-15Remove punctuation at start of suffix for natbib and biblatex output.Nathan Gass3-9/+9
This is necessary as the latex citation commands include there own punctuation, which resulted in doubled commas for markdown documents where citeproc output works correctly.
2010-12-14Added normalize funcion to latex citation tests.Nathan Gass1-9/+21
This is necessary because converting from markdown to latex correctly changes hyphens to en-dashes and some spaces to non-breaking spaces. Converting back to markdown does not undo this changes, and so the tests have to undo them.
2010-12-14Added citation tests.Nathan Gass7-22/+245
Added tests for latex citation writer and reader, markdown citation writer and additional markup in citations.
2010-12-13Added support for latex cite commands in latex reader.Nathan Gass1-4/+4
2010-12-13Disabled colored boxes around cites in latex template.Nathan Gass3-3/+3
2010-12-13Markdown reader: Fixed regression in reference key parser.John MacFarlane1-1/+0
* The recent change allowing spaces and newlines in the URL caused problems when reference keys are stacked up without blank lines between. This is now fixed. * Added test.
2010-12-10Markdown reader: Allow linebreaks in URLs (treat as spaces).John MacFarlane2-2/+3
Also, a string of consecutive spaces or tabs is now parsed as a single space. If you have multiple spaces in your URL, use %20%20.
2010-12-09textile redcloth definition listspaul.rivier2-0/+24
2010-12-09Textile reader: better treatment of acronyms.John MacFarlane1-1/+1
We now parse PBS(Public Broadcasting System) as if it were "PBS (Public Broadcasting System)".
2010-12-08RST reader: Added footnote suppport.John MacFarlane2-1/+35
Resolves issue #258. Note that there are some differences in how docutils and pandoc treat footnotes. Currently pandoc ignores the numeral or symbol used in the note; footnotes are put in an auto-numbered ordered list.
2010-12-08Textile reader: Implemented footnotes.John MacFarlane2-2/+11
2010-12-07Made --smart work with RST reader.John MacFarlane2-48/+48
2010-12-07Smart punctuation: don't alllow ellipses containing spaces.John MacFarlane1-1/+1
Previously we allowed '. . .', ' . . . ', etc. This caused too many complications, and removed author's flexibility in combining ellipses with spaces and periods.
2010-12-07Moved smartPunctuation from Markdown to Parsing.John MacFarlane1-8/+8
+ Parameterized smartPunctuation on an inline parser. + Handle smartPunctuation in Textile reader.
2010-12-07Textile reader: implemented acronyms, (tm), (r), (c).John MacFarlane2-1/+19
2010-12-07Fixed bugs in ieee.csl (Andrea Rossato).John MacFarlane1-2/+2
2010-12-07Updated ieee citation test for punctuation-in-quote.John MacFarlane1-2/+2
2010-12-06Markdown reader: handle curly quotes better.John MacFarlane3-2/+11
Previously, curly quotes were just parsed literally, leading to problems in some output formats. Now they are parsed as Quoted inlines, if --smart is specified. Resolves Issue #270.
2010-12-05Fix regression: markdown references should be case-insensitive.John MacFarlane2-1/+15
This broke when we added the Key type. We had assumed that the custom case-insensitive Ord instance would ensure case-insensitive matching, but that is not how Data.Map works. * Added a test case for case-insensitivity in markdown-reader-more * Removed old refsMatch from Text.Pandoc.Parsing module; * hid the 'Key' constructor; * dropped the custom Ord and Eq instances, deriving instead; * added fromKey and toKey to convert between Keys and Inline lists; * toKey ensures that keys are case-insensitive, since this is the only way the API provides to construct a Key. Resolves Issue #272.
2010-12-04Added tests.Puneeth Chaganti3-0/+938
+ Added tables.org and writer.org to tests. + Added org.template to templates. + Changed RunTests.hs as required. + Minor changes to Org writer.
2010-12-03Merge branch 'citeproc' into master.John MacFarlane9-2/+1068
Conflicts: src/Text/Pandoc/Definition.hs
2010-12-03Textile reader: added hrule parser.John MacFarlane1-1/+1
2010-12-03Textile reader: drop leading, trailing newline in pre block.John MacFarlane1-2/+2
This is consistent with how the other readers work.