aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2012-09-12HTML writer: Improve line breaks with `<dd>` tags.John MacFarlane1-5/+10
We now put a newline between `</dd>` and `<dd>` when there are multiple definitions.
2012-09-08Fixed spacing in context writer test.John MacFarlane1-1/+1
2012-09-06LaTeX reader: Support obeylines environment.John MacFarlane2-0/+6
Closes #604.
2012-09-06LaTeX reader: Use curly quotes for bare straight quotes.John MacFarlane1-1/+1
2012-09-06Fixed footnotes bug in textile.John MacFarlane1-1/+1
This affected notes occuring before punctuation, e.g. `foo[1].`. Closes #518.
2012-08-29Fix RST reader for field lists items with body beginning after a new lineDenis Laxalde1-1/+2
2012-08-25Added (failing) test case for #518.John MacFarlane2-2/+4
2012-08-18Man writer: Escape - as \-.John MacFarlane1-10/+10
Unescaped -'s become hyphens, while \-'s are left as ascii minus signs. That is preferable for use with command-line options. See http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html. Thanks to Andrea Bolognani for bringing the issue to our attention.
2012-08-08Changes to literate haskell options.John MacFarlane1-1/+3
- Removed writerLiterateHaskell from WriterOptions. - Removed readerLiterateHaskell from ReaderOptions. - Added Ext_literate_haskell to Extensions. Test for this instead of the above. - Removed failUnlessLHS from Shared. Note: At this point, +lhs and .lhs extension no longer has any effect. Need to fix.
2012-08-01Major rewrite of markdown reader.John MacFarlane7-363/+355
* Use Builder's Inlines/Blocks instead of lists. * Return values in the reader monad, which are then run (at the end of parsing) against the final parser state. This allows links, notes, and example numbers to be resolved without a second parser pass. * An effect of using Builder is that everything is normalized automatically. * New exports from Text.Pandoc.Parsing: widthsFromIndices, NoteTable', KeyTable', Key', toKey', withQuoteContext, singleQuoteStart, singleQuoteEnd, doubleQuoteStart, doubleQuoteEnd, ellipses, apostrophe, dash * Updated opendocument tests. * Don't derive Show for ParserState. * Benchmarks: markdown reader takes 82% of the time it took before. Markdown writer takes 92% of the time (here the speedup is probably due to the fact that everything is normalized by default).
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane8-18/+16
2012-07-26Integrated test suite with cabal.John MacFarlane1-1/+2
To run tests, configure with --enable-tests, then 'cabal test'. You can specify particular tests using --test-options='-t markdown'. No output is shown unless tests fail. In the future, we can move to the detailed-1.0 interface.
2012-07-26Moved tests to tests/, modified cabal file so lib isn't recompiled.John MacFarlane13-0/+1134
2012-07-22Revised code for pipe tables.John MacFarlane2-1/+19
* 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 MacFarlane2-0/+0
Added to cabal file.
2012-07-22Merge pull request #510 from mytskine/markdown-extraJohn MacFarlane2-0/+94
Markdown extra tables [part of the multi-markdown syntax for tables]
2012-07-22Removed fb2.math-webtex.fb2 tests.John MacFarlane1-2/+0
Test suite should not require net access to run.
2012-07-22FB2: support images embedded as data URIs + tests.Sergey Astanin2-0/+16
2012-07-22Test suite for FB2 writer.Sergey Astanin13-0/+80
2012-07-16Don't recognize inline-markup starts inside words.John MacFarlane2-1/+7
For example, "2*2 = 4*1" should not contain an emphasized section. Added test case for "Literal symbols". Closes #569.
2012-07-13Textile reader: properly handle links with surrounding brackets.John MacFarlane2-0/+3
Square brackets need to be used when the link isn't surrounded by spaces or punctuation, or when the URL ending may be ambiguous. Closes #564.
2012-06-27ConTeXt writer: don't escape `&`,`^`,`<`,`>`.John MacFarlane1-17/+16
Simplified escapes for `}` and `{` to `\{` and `\}`. Thanks to Aditya Mahajan.
2012-06-27MediaWiki writer: Avoid extra blank lines after sublists.John MacFarlane1-7/+0
Thanks to Gavin Beatty.
2012-06-26Don't escape `_` as `\letterunderscore{}` in ConTeXt.John MacFarlane1-2/+2
2012-06-08Updated tests for changes in LaTeX template.John MacFarlane3-3/+3
2012-06-05Updated tests for changes in LaTeX changes.John MacFarlane3-24/+21
2012-06-05Updated tests for changes in latex template.John MacFarlane3-45/+49
2012-06-03Added failing tests for note beginning with a citation.John MacFarlane4-4/+4
See issue #531.
2012-06-03Updated test suite.John MacFarlane3-46/+36
2012-05-29Textile reader: fix for `<notextile>` and `==`.paul.rivier2-0/+15
Closes #517.
2012-05-23Added (failing) tests for textual citations in footnotes.John MacFarlane4-4/+4
2012-05-16Markdown writer: Improved definition lists.John MacFarlane1-22/+22
* Use `:` form instead of `~`, for better compatibility with other markdown implementations. * Don't wrap the term, because it breaks definition lists.
2012-05-14LaTeX writer: More consistent interblock spacing.John MacFarlane4-6/+17
2012-05-09DocBook reader: More improvements, passes tests.John MacFarlane2-16/+16
2012-05-08DocBook reader: More test improvements.John MacFarlane2-2/+2
2012-05-08DocBook reader tests - further refinements.John MacFarlane1-4/+4
2012-05-08DocBook reader: More improvements, more tests pass.John MacFarlane2-32/+25
2012-05-08DocBook reader: Improved def lists with multiple defs.John MacFarlane1-11/+11
2012-05-08Improved docbook reader tests.John MacFarlane2-553/+40
2012-05-08Added docbook reader tests (still failing).John MacFarlane2-0/+2374
2012-04-30Improved spacing around LaTeX block environments.John MacFarlane3-3/+44
verbatim, itemize, description, enumerate.
2012-04-30LaTeX writer: Fixed spacing in quote environments.John MacFarlane3-8/+6
Closes #502. Previously you'd get: ~~~ hi \begin{quote} hi \end{quote} hi ~~~ Now we get: ~~~ hi \begin{quote} hi \end{quote} hi ~~~
2012-04-28Updated latex writer tests for new template.John MacFarlane3-0/+6
2012-04-27Merge pull request #485 from paul-r-ml/masterJohn MacFarlane2-5/+21
Textile reader update
2012-04-24textile reader improvements : better conformance to RedCloth Textile inlinespaul.rivier2-5/+6
2012-04-21LaTeX writer: Use fixltx2e package to provide '\textsubscript'.John MacFarlane3-2/+5
2012-04-17Textile reader quick clean-up and added support for LaTeX blocks and inlines.paul.rivier2-0/+15
2012-04-15Mardkown writer: escape < and $.John MacFarlane1-4/+4
2012-04-06Updated texinfo test to reflect template change.John MacFarlane1-1/+1
2012-04-03LaTeX writer: don't use eurosym package unless document has a €.John MacFarlane3-3/+0