aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2013-04-09Man writer: use one decimal place for column widths.John MacFarlane1-3/+3
This, I hope, will fix test failures on GHC 7.6 due to (presumably) different rounding or floating point multiplication.
2013-04-09Update markdown writer tests for changes in author in titleblock.John MacFarlane1-1/+2
Authors are now put on separate lines.
2013-04-09Fixed Haddock reader bugs with list item spaces and examples.John MacFarlane1-2/+2
Closes #824.
2013-04-08Fixed haddock test output.John MacFarlane2-9/+9
- omit extra spaces in list items - correct line breaks in ghci output
2013-04-04Haddock reader: add tests.David Lazar2-1/+95
2013-03-28Modified haddock reader test stubs so they pass, for now.John MacFarlane2-2/+1
2013-03-28Added stubs for haddock reader tests.John MacFarlane3-0/+7
Modify tests/haddock-reader.haddock and tests/haddock-reader.native.
2013-03-28MediaWiki reader: Correctly handle indented preformatted textJohn MacFarlane2-0/+7
without preceding or following blank line.
2013-03-28Mediawiki: Fixed regression for `<ref>URL</ref>`.John MacFarlane2-1/+3
`<` is no longer allowed in URLs, according to the uri parser in Text.Pandoc.Parsing. Added a test case.
2013-03-20Added OPML template, tests.John MacFarlane4-92/+158
Minor fixes to OPML writer. Improved OPML reader tests.
2013-03-19Added Text.Pandoc.Readers.OPML, exporting readOPML.John MacFarlane3-0/+161
The _note attribute is supported. This is unofficial, but used e.g. in OmniOutliner and supported by multimarkdown. We treat the contents as markdown blocks under a section header. Added to documentation and tests.
2013-03-17Markdown writer: New approach for citations.John MacFarlane1-1/+1
* Reverts 1.11 change that caused citations to be rendered as markdown citations, even if `--biblio` was specified, unless `citation` extension is disabled. Now, formatted citations are always printed if `--biblio` was specified. If you want to reformat markdown keeping pandoc markdown citations intact, just don't specify `--biblio`. * Reverted now unnecessary changes to Text.Pandoc.Biblio adding the raw block to mark the bibliography, and to Text.Pandoc.Writers.Markdown to remove the bibliography if `citations` not specified. * If the content of a `Cite` inline is a `RawInline "latex"`, which means that a LaTeX citation command was parsed and `--biblio` wasn't specified, then render it as a pandoc markdown citation. This means that `pandoc -f latex -t markdown`, without `--biblio`, will convert LaTeX citation commands to pandoc markdown citations.
2013-03-17Revert "LaTeX reader: citation handling changes."John MacFarlane4-116/+4
This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.
2013-03-13Markdown reader: don't lose parentheses in URLs.John MacFarlane2-1/+15
Added tests. This fixes a regression from 1.10.x. Closes #786.
2013-03-09LaTeX reader: citation handling changes.John MacFarlane4-4/+116
Previously, a LaTeX citation would always be parsed as a Citation element, with the raw LaTeX in the [Inline] part. Now, the LaTeX citation is parsed as a Citation element only if `--biblio` was specified (i.e. only if there is a nonempty set of references in readerReferences). Otherwise it is parsed as raw LaTeX. This will make it possible to simplify some things in the markdown writer. It also makes the LaTeX reader behave more like the Markdown reader.
2013-03-07Markdown writer: Render citations as pandoc-markdown citations.John MacFarlane1-2/+2
Previously citations were rendered as citeproc-formatted citations by default. Now we render them as pandoc citations, e.g. `[@item1]`, unless the `citations` extension is disabled. If you still want formatted citations in your markdown output, use `pandoc -t markdown-citations`.
2013-03-05Hide Text.Pandoc.Highlighting.John MacFarlane1-1/+1
* Moved code for translating listings language names to highlighting-kate names and back from LaTeX reader to Highlighting. * Text.Pandoc.Highlighting no longer exposed (API change) * Text.Pandoc.Highlighting exports toListingsLang, fromListingsLang
2013-03-02Added test for pipe table with spaces around header lines.John MacFarlane1-1/+1
2013-02-27Updated tests for latex template change (microtype).John MacFarlane3-6/+6
2013-02-21Make `implicit_header_references` work with explicit header ids.John MacFarlane2-2/+5
(Markdown reader.)
2013-02-16Textile reader: Handle attributes on headers.John MacFarlane2-2/+2
Includes `[lang]`, `(class #id)`, `{color:red}` styles.
2013-02-15Allow `&` in emails (for entities).John MacFarlane2-1/+17
Added tests for entities in titles and links. Closes #723.
2013-02-14HTML writer: Support header attributes.John MacFarlane3-7/+7
Note: The attributes go on the enclosing section or div if `--section-divs` is specified. Also fixed a regression (only now noticed) in html+lhs output. Previously the bird tracks were being omitted.
2013-01-28DocBook writer: for linebreak, but newline in literallayout.John MacFarlane1-1/+2
Closes #725.
2013-01-28Updated latex table tests.John MacFarlane1-7/+7
2013-01-28Merge pull request #733 from jrunningen/masterJohn MacFarlane2-0/+7
Mediawiki reader: Don't require blanklines after tables.
2013-01-27Markdown/RST reader: Skip blank lines.John MacFarlane2-4/+17
This fixes a subtle regression involving grid tables with empty cells. Closes #732. Also added test for grid table with empty cells.
2013-01-27Mediawiki reader: Don't require blanklines after tables.Jeff Runningen2-0/+7
2013-01-26RST writer: Use `.. code:: language` for code blocks with language.John MacFarlane10-19/+19
Closes #721. Also fixed whitespace in lhs tests.
2013-01-23Eliminated use of TH in test suite.John MacFarlane7-70/+42
2013-01-21LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.John MacFarlane3-0/+3
2013-01-21Use proportional font for email autolinks with obfuscation.John MacFarlane1-1/+1
Closes #714.
2013-01-21Markdown reader: Fixed bug with headerless grid tables.John MacFarlane2-1/+91
The 1.10 code assumed that each table header cell contains exactly one block. That failed for headerless tables (0) and also for tables with multiple blocks in a header cell. The code is fixed and tests provided. Thanks to Andrew Lee for pointing out the bug.
2013-01-20Fixed bug with escaped % in LaTeX reader.John MacFarlane2-1/+7
Also added tests. Closes #710.
2013-01-19LaTeX test updates for latest changes to template & h-k.John MacFarlane3-1/+7
2013-01-19Get rid of compiler warnings in Tests.Helpers.John MacFarlane1-2/+5
2013-01-18Set locale encoding in test suite.John MacFarlane1-2/+4
This prevents a "commit buffer (invalid argument)" error on Windows.
2013-01-18RTF writer: Added writeRTFWithEmbeddedImages.John MacFarlane1-1/+0
* RTF writer: Export writeRTFWithEmbeddedImages instead of rtfEmbedImage. * Text.Pandoc: Use writeRTFWithEmbeddedImages for RTF. * Moved code for embedding images in RTF out of pandoc.hs.
2013-01-15Changed Ext_autolink_urls -> Ext_autolink_bare_uris.John MacFarlane1-1/+1
Added tests.
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