aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2013-01-15Added lots of tests for bare URIs.John MacFarlane1-0/+91
2013-01-15Revised URI parser.John MacFarlane1-1/+1
* It no longer uses Network.URIs URI parser, which is too restrictive (not allowing unicode URIs unless encoded). * It allows many more schemes. * It better handles punctuation so as to avoid capturing trailing punctuation in bare URLs.
2013-01-15Use 'fig:' instead of '\SOH' in title to indicate figure.John MacFarlane2-2/+2
Revises 1a4b47e93368bfbd31daccdfedbd9527ee740201
2013-01-14Implemented Ext_implicit_figures.John MacFarlane3-3/+3
* 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.
2013-01-14Parsing: Fixed uri -- escape unicode URLs.John MacFarlane1-1/+1
Otherwise Network.URI.parseURI fails on e.g. Chinese URLs. Changed an incorrect test in markdown-reader-more.
2013-01-13RST writer: Fixes bug with links with duplicate text.John MacFarlane1-28/+28
We now (a) use anonymous links for links with inline URLs, and (b) use an inline link instead of a reference link if the reference link would require a label that has already been used for a different link. Closes #511.
2013-01-13Added tests for markdown line blocks and explicit header attributes.John MacFarlane2-1/+20
2013-01-13RST reader: Line block improvements.John MacFarlane3-5/+5
* Use nonbreaking spaces for initial indent (otherwise lost in HTML and LaTeX). * Allow multiple paragraphs in a single line block.
2013-01-13Use line block in RST writer when a paragraph contains linebreaks.John MacFarlane1-2/+2
Previously linebreaks weren't supported in RST, since RST has no native linebreak construct.
2013-01-12Escape `|` as `\vert` in LaTeX math.John MacFarlane1-0/+4
This avoids a clash with highlighting-kate's macros, which redefine | as a short verbatim delimiter. Thanks to Björn Peemöller for raising this issue.
2013-01-12Fixed/simplified diff output for tests.John MacFarlane1-13/+8
2013-01-09Added Attr field to Header.John MacFarlane19-297/+339
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.
2013-01-07Updated tests for tight/loose lists.John MacFarlane4-37/+67
Taking into account new context/latex output, and fixing some bugs in the test suite Tests.Helpers and Tests.Writers.ConTeXt. (We had the wrong order of expected/actual in the diff output.)
2013-01-06Don't put the text of an autolink in Code font.John MacFarlane17-43/+42
2013-01-06Mediawiki reader: interpret HTML in verbatim contexts as text.John MacFarlane1-1/+1
Thanks to Jeff Runningen for reporting that mediawiki works this way.
2013-01-05Updated table tests for latex writer changes.John MacFarlane1-40/+40
2013-01-04MediaWiki writer: use `<code>` not `<tt>` for Code.John MacFarlane1-7/+7
2013-01-04Added css to preserve spaces in <code> tags.John MacFarlane6-0/+6
Thanks to Dirk Laurie.
2013-01-04Updated tests for latest highlighting-kate version.John MacFarlane2-2/+2
2013-01-03Added tests for implicit header references.John MacFarlane2-1/+21
2013-01-03Updated test runner for changes in pandoc.John MacFarlane1-6/+6
2013-01-02Fixed test suite to use Diff 0.2 API.John MacFarlane1-7/+7
2012-11-06Textile reader/writer: Fixed autolinks.John MacFarlane3-6/+6
Previously the textile reader and writer incorrectly implented RST-style autolinks for URLs and email addresses. This has been fixed. Now an autolink is done this way: "$":http://myurl.com
2012-11-04RST writer: Don't add ":align: center" to figures.John MacFarlane1-1/+0
2012-10-28Removed citationSuppressParens.John MacFarlane2-2/+2
Makefile: Use citeproc-0.3.6 release.
2012-10-22LaTeX reader: Initialize citationSuppressParens field.John MacFarlane2-2/+3
2012-10-21Revert "LaTeX reader: Use new suppressParens option for footnote citations."John MacFarlane1-7/+6
This reverts commit 7499499b68934ae6f3418940328c7fc2bd9fcadd. Conflicts: src/Text/Pandoc/Readers/LaTeX.hs
2012-10-21Revert "Adjust LaTeX reader test for last change."John MacFarlane1-1/+1
This reverts commit ea34087cde44bc941ef0280d10de775a8c7e5426.
2012-10-20Updated lhs-test.latex for new highlighting-kate treatment of `.John MacFarlane1-1/+1
2012-10-15Adjust LaTeX reader test for last change.John MacFarlane1-1/+1
2012-10-15LaTeX reader: Use new suppressParens option for footnote citations.John MacFarlane1-6/+7
Also changed Biblio, Markdown reader, and LaTeX reader tests because of new citationSuppressParens field in Citation.
2012-10-13Textile reader: Fixed bug with list items containing line breaks.John MacFarlane2-0/+10
Now pandoc correctly handles hard line breaks inside list items. Previously they broke list parsing. Thanks to Pablo Rodríguez for pointing out the problem.
2012-10-10LaTeX reader: Better support for citation commands.John MacFarlane1-1/+1
* Make `\cite` etc. an AuthorInText. * Make `\footcite` etc. into citations in notes.
2012-10-05Textile reader: Implemented comment blocks.John MacFarlane2-1/+11
2012-10-04Updated mediawiki writer test for `<br />` change.John MacFarlane1-2/+1
2012-09-30RST reader: Consolidate super/subscript, math into interpretedRole.John MacFarlane1-1/+1
2012-09-30RST reader: Consolidated rawBlock into directive.John MacFarlane1-3/+3
2012-09-29Renamed removedLeadingTrailingSpace to trim.John MacFarlane1-2/+2
Also removeLeadingSpace to triml, removeTrailingSpace to trimr.
2012-09-29RST reader: Consolidated math block parsers into directive.John MacFarlane1-2/+2
2012-09-27RST reader: Use Text.Pandoc.Builder.John MacFarlane2-125/+125
This will give us more flexibility in the future. It also gives built-in normalization. Performance slightly better.
2012-09-27RST reader: Support :target: on image substitutions.John MacFarlane2-0/+7
2012-09-26RST reader: Support :target: on .. image:: blocks.John MacFarlane1-2/+2
Still not supported on substitution definitions.
2012-09-25Removed need for utf8-string package.John MacFarlane1-2/+2
* Depend on text. * Expose Text.Pandoc.UTF8. * Text.Pandoc.UTF8 now exports toString, fromString, toStringLazy, fromStringLazy. * These are used instead of the old utf8-string functions.
2012-09-24Texinfo writer: Fixed internal cross-references.John MacFarlane1-26/+67
Now we insert anchors after each header, and use @ref instead of @uref for links. Commas are now escaped as @comma{} only when needed; previously all commas were escaped. (This change is needed, in part, because @ref commands must be followed by a real comma or period.) Also insert a blank line in from of @verbatim environments.
2012-09-22Markdown reader: Fixed link parser to avoid exponential slowdowns.John MacFarlane1-0/+2
Previously the parser would hang on input like this: [[[[[[[[[[[[[[[[[[hi We fixed this by making the link parser parser characters between balanced brackets (skipping brackets in inline code spans), then parsing the result as an inline list. One change is that [hi *there]* bud](/url) is now no longer parsed as a link. But in this respect pandoc behaved differently from most other implementations anyway, so that seems okay. All current tests pass. Added test for this case. Closes #620.
2012-09-22LaTeX reader: Added a 'try' in rawLaTeXBlock.John MacFarlane1-0/+4
This allows the markdown reader to treat '\begin' (not followed by an argument) as a raw string rather than erroring out when it doesn't find a '{'. Closes #622.
2012-09-21Tests.Old: Set TMP to ".".John MacFarlane1-1/+1
Otherwise TMP is unset and, on Windows, C:\Windows is used by default, leading to permission violations.
2012-09-16LaTeX writer: Don't rely on the enumerate package.John MacFarlane1-24/+34
Instead, use standard LaTeX commands to change numbering style.
2012-09-16LaTeX writer: Properly escape strings inside \url{}.John MacFarlane1-1/+1
Closes #576.
2012-09-16Merge pull request #596 from dlax/rst-fieldlistsJohn MacFarlane1-1/+2
improvements to rst reader for field lists