aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
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
2014-11-05Org reader: absolute, relative paths in linksAlbert Krewinkel1-0/+8
The org reader was to restrictive when parsing links, some relative links and links to files given as absolute paths were not recognized correctly. The org reader's link parsing function was amended to handle such cases properly. This fixes #1741
2014-11-04DokuWiki writer: Better handling of block quotes.John MacFarlane1-2/+3
This change ensures that multiple paragraph blockquotes are rendered using native `>` rather than as HTML. Closes #1738.
2014-10-30TWiki Reader: add basic syntax testAlexander Sulfrian3-0/+398
2014-10-25Docx test: Remove Danish header test.Jesse Rosenthal3-14/+0
Redundant, now that we're testing for a more generalized sort of internationalized blocks.
2014-10-25Docx reader: add tests for i18n headers.Jesse Rosenthal3-0/+12
This tests blockquotes and headers in Russian. Previous tests make sure that this doesn't produce a regression in en-us Header and Blockquotes.
2014-10-23HTML writer: Make header attributes work outside top level.John MacFarlane2-0/+4
Previously they only appeared on top level header elements. Now they work e.g. in blockquotes. Closes #1711.
2014-10-21Merge pull request #1706 from tarleb/org-symbol-entitiesJohn MacFarlane1-0/+12
Org reader: parse LaTeX-style MathML entities
2014-10-20Pretty: Make CR + BLANKLINE = BLANKLINE.John MacFarlane5-9/+5
This fixes an extra blank line we were getting at the end of markdown fragments (as well as rst, org, etc.) Closes #1705.
2014-10-20Org reader: parse LaTeX-style MathML entitiesAlbert Krewinkel1-0/+12
Org supports special symbols which can be included using LaTeX syntax, but are actually MathML entities. Examples for this are `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute) or `\copy` (the copyright sign ©). This fixes #1657.
2014-10-19Parsing: fixed `inlineMath` so it handles `\text{..}` containing `$`.John MacFarlane2-0/+3
For example: `$x = \text{the $n$th root of $y$}`. Closes #1677.