aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2015-03-08LaTeX reader: add some test cases for simple tablesMathias Schenner1-0/+31
2015-03-08Docx Writer: Tables testNikolay Yakimov1-6/+6
2015-03-08Lists testNikolay Yakimov2-4/+21
2015-03-07Fixed pipe tables -- headerless tables are not allowed.John MacFarlane1-1/+3
GFM and PHP Markdown Extra pipe tables require headers. Previously pandoc allowed pipe tables not to include headers, and produced headerless pipe tables in Markdown output, but this was based on a misconception about pipe table syntax. This commit fixes this. Note: If you have been using headerless pipe tables, this may cause existing tables to break. Closes #1996.
2015-03-03Initial tests for writerNikolay Yakimov9-0/+145
2015-02-26Org reader: Add test for image linksHans-Peter Deifel1-0/+4
Tests for image links with non-image targets, as introduced in commit 2ca5101.
2015-02-25Markdown writer: Avoid introducing spurious list items through wrapping.John MacFarlane5-7/+15
Closes #1946.
2015-02-21Docx reader: add test for verbatim in sub/superscript.Jesse Rosenthal3-0/+12
2015-02-19Docx reader: Add tests for new list style parsing.Jesse Rosenthal3-0/+10
2015-02-18Update testsMatthew Pickering8-15/+23
2015-02-18Allow digit as first character of a citation key.Matthias C. M. Troffaes1-0/+22
* Update parser to recognize citation keys starting with a digit. * Update documentation accordingly. * Test case added. See https://github.com/jgm/pandoc-citeproc/issues/97
2015-02-17ICML writer: Better handling of raw blocks and inlines.John MacFarlane1-132/+1
Previously these were always escaped and printed verbatim. Now they are ignored unless the format is "icml", in which case they are passed through unescaped. Closes #1951.
2015-02-13Docx reader: test lists in table cells.Jesse Rosenthal3-0/+15
2015-02-07Merge pull request #1927 from freephile/masterJohn MacFarlane1-2/+2
update syntax for Images/Media files in MediaWiki
2015-02-07Merge branch 'patch/fixTexinfoWrap' of https://github.com/timtylin/scholdoc ↵John MacFarlane1-12/+31
into timtylin-patch/fixTexinfoWrap Conflicts: src/Text/Pandoc/Writers/Texinfo.hs
2015-02-06Texinfo writer: fix wrapping by using breakable spacesTim Lin1-12/+31
2015-02-05update syntax for Images/Media files in MediaWikiGreg Rundlett1-2/+2
The preferred syntax for Images and other media is [[File:Foo.jpg]] in MediaWiki since v1.14 (2008). [[Image:Foo.jpg]] is deprecated but still works as an alias to the File namespace.
2015-02-04Append newline to the LineBreak of various writersTim Lin7-7/+14
This change improves output formatting of content with a large amount of force line breaks, such as line-blocks. The following writers are affected: * Dokuwiki * HTML * EPUB (via HTML) * LaTeX * MediaWiki * OpenDocument * Texinfo This commit resolves #1924
2015-02-01HTML writer: Add "inline" or "display" class to math spans.John MacFarlane4-10/+10
This allows inline and display math to be styled differently. Closes #1914.
2015-01-25Merge pull request #1885 from mb21/html-reader-tablesJohn MacFarlane2-1/+375
fixes HTML Reader: tables
2015-01-25fixes #1859 HTML Reader table parsingmb212-1/+375
2015-01-21Docx Reader: Add test for VML images.Jesse Rosenthal3-0/+8
Since images are often visually (not structurally) placed on the page, people might not always get the results they're looking for here.
2014-12-15FB2 writer: Add newline to output.John MacFarlane1-1/+1
2014-12-15HTML writer: put newline btw img and caption paragraph.John MacFarlane1-1/+2
2014-12-15Don't treat a citation as a reference link label.John MacFarlane2-0/+9
Closes #1763.
2014-12-15Improved texorpdfstring patch #1148.John MacFarlane4-37/+31
* Make LaTeX reader recognize texorpdfstring. * Don't use texorpdfstring unless it's actually needed. * Fix tests.
2014-12-15Merge branch 'use-texorpdfstring' of https://github.com/wilx/pandoc into ↵John MacFarlane4-35/+43
wilx-use-texorpdfstring Conflicts: src/Text/Pandoc/Writers/LaTeX.hs tests/Tests/Writers/LaTeX.hs
2014-12-15Merge pull request #1805 from bergey/rstJohn MacFarlane2-21/+40
RST Reader - Improved Role Support
2014-12-14DocBook readers: Include id on section headers.John MacFarlane1-32/+32
Closes #1818.
2014-12-14Merge pull request #1813 from tarleb/file-linksJohn MacFarlane1-1/+8
Org reader: properly handle links to `file:target`
2014-12-14Org reader: properly handle links to `file:target`Albert Krewinkel1-1/+8
Org links like `[[file:target][title]]` were not handled correctly, parsing the link target verbatim. The org reader is changed such that the leading `file:` is dropped from the link target. This is related to issues #756 and #1812.
2014-12-14Fixe autolinks with following punctuation.John MacFarlane1-0/+5
Closes #1811. The price of this is that autolinked bare URIs can no longer contain `>` characters, but this is not a big issue.
2014-12-12RST Reader: compute Attrs when role is definedDaniel Bergey2-4/+4
Move recursive role lookup from renderRole to addNewRole. The Attr value will be the same for every occurance of this role, so there's no reason to compute it every time. This allows simplifying the stateRstCustomRoles map considerably. We could go even further, and remove the fmt and attr arguments to renderRole, which are null except for custom roles.
2014-12-12WIP: tests for RST rolesDaniel Bergey2-20/+39
2014-12-10Merge pull request #1695 from bjornbm/masterJohn MacFarlane1-1/+1
Escape inline verbatim spaces in LaTeX output
2014-12-08DocBook reader: document/test "type" as implementedBryan O'Sullivan2-2/+2
2014-12-08Fix test suiteBryan O'Sullivan1-1/+1
2014-12-08DocBook reader: add support for classnameBryan O'Sullivan2-0/+4
2014-12-08DocBook reader: add support for calloutlist and calloutBryan O'Sullivan2-0/+25
We treat a calloutlist as a bulleted list. This works well in practice.
2014-12-08Merge pull request #1746 from shelf/dw-ext-imagesMatthew Pickering3-0/+4
DokuWiki writer: fix external images
2014-12-01parse RST class directivesDaniel Bergey1-0/+6
The class directive accepts one or more class names, and creates a Div value with those classes. If the directive has an indented body, the body is parsed as the children of the Div. If not, the first block folowing the directive is made a child of the Div. This differs from the behavior of rst2xml, which does not create a Div element. Instead, the specified classes are applied to each child of the directive. However, most Pandoc Block constructors to not take an Attr argument, so we can't duplicate this behavior.
2014-12-01parse RST quoted literal blocksDaniel Bergey1-1/+16
closes #65 RST quoted literal blocks are the same as indented literal blocks (which pandoc already supports) except that the quote character is preserved in each line. This includes test cases for the quoted literal block, as well as additional tests for line blocks and indented literal blocks, to verify that these are unaffected by the changes.
2014-11-25Reverted "omit blank lines after list items," better fix for #1777.John MacFarlane1-0/+23
Now we do as before, including blank lines after list items in loose lists (even though RST doesn't care -- this is just a matter of visual appeal). But we chomp any excess whitespace after the last list item, which solves #1777.
2014-11-25RST writer: Omit blank lines after list items.John MacFarlane1-23/+1
They are optional in RST (except after the last list item, of course). Fixes #1777.
2014-11-16Removed extra `</body>` tag from `tests/html-reader.html`.John MacFarlane1-1/+0
2014-11-13Fixed bug in org with bulleted lists:John MacFarlane1-0/+7
- a - b * c was being parsed as a list, even though an unindented `*` should make a heading. See <http://orgmode.org/manual/Plain-lists.html#fn-1>.
2014-11-13Add tests for external links with anchorsCaleb McDaniel2-0/+1
2014-11-12Merge pull request #1645 from neongreen/issue1636John MacFarlane1-0/+12
Fix 'Ext_lists_without_preceding_blankline' bug.
2014-11-09DokuWiki writer: add external_images testTimothy Humphries3-0/+4
Add test for #1739.
2014-11-05Org reader: allow empty links for gitit interopAlbert Krewinkel1-0/+4
While empty links are not allowed in Emacs org-mode, Pandoc org-mode should support them: gitit relies on empty links as they are used to create wiki links. Fixes jgm/gitit#471