aboutsummaryrefslogtreecommitdiff
path: root/src/Tests
AgeCommit message (Collapse)AuthorFilesLines
2012-07-25Changed reader parameters from ParserState to ReaderOptions.John MacFarlane3-9/+6
2012-07-25Moved stateLiterateHaskell to readerLiterateHaskell in Options.John MacFarlane1-1/+2
2012-07-25Got rid of stateStandalone, which was hardly used anyway.John MacFarlane2-2/+2
The only possible effect will be with rst fragments that begin with an rst title block, which will now cause the header transform.
2012-07-25Options -> ReaderOptions.John MacFarlane1-1/+1
Better to keep reader and writer options separate.
2012-07-25Put smart, strict in separate options field in state.John MacFarlane1-1/+3
This is the beginning of a larger transition that will make Options, not ParserState, the parameter of the read functions. (Options will also be used in writers, in place of WriterOptions.) Next step is to remove strict, replacing it with granular tests for different extensions.
2012-07-22Revised code for pipe tables.John MacFarlane1-2/+2
* All tables now require at least one body row. * Renamed from 'extra' to 'pipe' tables. * Moved functions from Parsing to Readers.Markdown. * Cleaned up code; revised to parse in one pass rather than parsing a raw string, splitting it, and parsing the components. * Allow pipe tables without pipes on the ends (as PHP Markdown Extra does).
2012-07-22Renamed tests/markdown-tables -> tests/extra-tables.John MacFarlane1-1/+1
Added to cabal file.
2012-07-22Merge pull request #510 from mytskine/markdown-extraJohn MacFarlane1-0/+2
Markdown extra tables [part of the multi-markdown syntax for tables]
2012-07-22Removed fb2.math-webtex.fb2 tests.John MacFarlane1-1/+0
Test suite should not require net access to run.
2012-07-22FB2: support images embedded as data URIs + tests.Sergey Astanin1-0/+1
2012-07-22Test suite for FB2 writer.Sergey Astanin1-3/+25
2012-06-27ConTeXt writer: don't escape `&`,`^`,`<`,`>`.John MacFarlane1-1/+1
Simplified escapes for `}` and `{` to `\{` and `\}`. Thanks to Aditya Mahajan.
2012-06-01LaTeX writer: Ensure newline after Verbatim at end of footnote.John MacFarlane1-0/+35
This fixes a regression. Also added a test for this.
2012-05-08Added docbook reader tests (still failing).John MacFarlane1-1/+6
2012-02-21Added support for markdown-extra tables in the markdown parserFrançois Gannaz1-0/+2
Only tables whose lines begin with a "|" are supported. There are 2 warnings about unused variables when compiling.
2012-02-10LaTeX reader: Add ", " to suffix...John MacFarlane1-18/+18
if it doesn't start w space or punctuation. Otherwise we get no space between the year and the suffix in author-date styles.
2012-02-10Test suite: Don't print 'expected' in red.John MacFarlane1-6/+4
2012-02-07Added test case for issue #186 (\$ in latex math).John MacFarlane1-1/+1
2012-02-07Added test case for issue #186 (\$ in latex math).John MacFarlane1-0/+5
2012-02-06LaTeX reader: use raw latex as fallback for Cites.John MacFarlane1-22/+24
This way you can still get the raw latex back, even if you don't process with citeproc. Previously, cites were not visible at all unless you specified --biblio on the command line and converted them using citeproc, or used --natbib or --biblatex.
2012-02-05Changed infix level of testing combinators.John MacFarlane7-7/+7
This avoids clash with (<>), which is defined in Data.Monoid as having infix 6.
2012-02-04Complete rewrite of LaTeX reader.John MacFarlane1-4/+4
* The new reader is more robust, accurate, and extensible. It is still quite incomplete, but it should be easier now to add features. * Text.Pandoc.Parsing: Added withRaw combinator. * Markdown reader: do escapedChar before raw latex inline. Otherwise we capture commands like \{. * Fixed latex citation tests for new citeproc. * Handle \include{} commands in latex. This is done in pandoc.hs, not the (pure) latex reader. But the reader exports the needed function, handleIncludes. * Moved err and warn from pandoc.hs to Shared. * Fixed tests - raw tex should sometimes have trailing space. * Updated lhs-test for highlighting-kate changes.
2011-12-30Removed header 1 property from ConTeXt tests.John MacFarlane1-3/+1
It didn't work with new ids.
2011-12-30Updated ConTeXt tests.John MacFarlane1-2/+2
2011-12-27Replaced Apostrophe, Ellipses, EmDash, EnDash w/ unicode strings.John MacFarlane3-9/+5
2011-12-26Added some failing test cases for apostrophes in French.John MacFarlane1-0/+6
2011-12-22Removed highlighting flag. Highlighting support is now standard.John MacFarlane1-5/+1
2011-12-13Use pandoc-types 1.9.*.John MacFarlane6-47/+47
2011-12-05Fixed tests for escapes in markdown titles, URLs.John MacFarlane1-3/+3
2011-12-05Fixed tests for escapes in links.John MacFarlane1-4/+4
2011-12-05Added more failing tests relating to issue #312.John MacFarlane1-1/+7
2011-12-04Added failing test for escape in markdown link title.John MacFarlane1-0/+3
2011-12-01Added failing test case for issue #312.John MacFarlane1-0/+5
2011-11-16Added an asciidoc writer (partial).John MacFarlane1-1/+1
Still TODO: - documentation in README - add default.asciidoc to templates/ - lists - tables - proper escaping - footnotes with blank lines - print separately at end? currently they are just ignored. - fix header (date gives weird result on pandoc README)
2011-09-02TypeSynonymInstances no longer implies FlexibleInstances in GHC 7.2Antoine Latter1-1/+1
2011-07-31Tweaked Arbitrary instance to help avoid timeouts in tests.John MacFarlane1-2/+2
2011-07-25Smart quotes: handle '...hi' properly.John MacFarlane1-0/+9
Also added test case.
2011-06-22Fixed test, added another markdown emph/strong test.John MacFarlane1-3/+7
2011-06-22Added failing test case due to Perry Wagle.John MacFarlane1-0/+7
2011-06-22Added Tests.Writers.Markdown.John MacFarlane1-0/+34
2011-04-20Disallow notes within notes in reST and markdown.John MacFarlane1-0/+3
These previously caused infinite looping and stack overflows. For example: [^1] [^1]: See [^1] Note references are allowed in reST notes, so this isn't a full implementation of reST. That can come later. For now we need to prevent the stack overflows. Partially resolves Issue #297.
2011-04-11Allow '|' followed by newline in RST line block.John MacFarlane1-1/+4
2011-03-18Changed uri parser so it doesn't include trailing punctuation.John MacFarlane1-0/+8
So, in RST, 'http://google.com.' should be parsed as a link to 'http://google.com' followed by a period. The parser is smart enough to recognize balanced parentheses, as often occur in wikipedia links: 'http://foo.bar/baz_(bam)'. Also added ()s to RST specialChars, so '(http://google.com)' will be parsed as a link in parens. Added test cases. Resolves Issue #291.
2011-03-12Fixed bug in RST field list parser.John MacFarlane1-0/+3
The bug affected field lists with multi-line items at the end of the list.
2011-03-02Markdown+lhs reader: Require space after inverse bird tracks.John MacFarlane1-0/+10
The point of the change is to allow html tags to be used freely at the left margin of a markdown+lhs document. Thanks to Conal Elliot for the suggestion.
2011-02-05HTML writer: stringify alt text.John MacFarlane1-0/+5
Previously, if you had formatting in the label of an Image element, you'd get escaped HTML in the alt attribute. Now you just get a plain string version, which seems preferable.
2011-02-04Native writer test: in block list test, limit to list < 20 blocks.John MacFarlane1-2/+3
2011-02-04Added cCommented-out round-trip property in markdown reader test.John MacFarlane1-0/+18
2011-02-04Improved Arbitrary instance.John MacFarlane1-32/+45
2011-02-04normalize: Normalize spaces too.John MacFarlane1-0/+5
In normal form, Space elements only occur to separate two non-Space elements. So, we never have [Space], or [, ..., Space].