aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests
AgeCommit message (Collapse)AuthorFilesLines
2015-04-18Added test case for #2062.John MacFarlane1-0/+3
2015-04-18Markdown writer: improved escaping.John MacFarlane1-2/+2
`<` should not be escaped as `\<`, for compatibility with original Markdown. We now escape `<` and `>` with entities. Also, we now backslash-escape square brackets. Closes #2086.
2015-04-18Markdown definition lists: don't require indent for first line.John MacFarlane1-0/+3
Previously the body of the definition (after the `:` or `~` marker) needed to be in column 4. This commit relaxes that requirement, to better match the behavior of PHP Markdown Extra. So, now this is a valid definition list: foo : bar This patch also helps resolve a potentially ambiguity with table captions: foo : bar ----- table ----- Is "bar" a definition, or the caption for the table? We'll count it as a caption for the table. Closes #2087.
2015-04-17More principled fix for #1820.John MacFarlane1-0/+3
If the tag parses as a comment, we check to see if the input starts with `<!--`. If not, it's bogus comment mode and we fail htmlTag. Includes test case. Closes #1820.
2015-04-17Merge branch 'latex-tightlist' of https://github.com/jlduran/pandoc into ↵John MacFarlane1-1/+1
jlduran-latex-tightlist Conflicts: data/templates
2015-04-17Merge pull request #1954 from mcmtroffaes/feature/citekey-firstchar-alphanumJohn MacFarlane1-0/+22
Allow digit as first character of a citation key.
2015-04-17Merge pull request #2079 from lierdakil/rst-normalize-headingsJohn MacFarlane1-0/+79
RST Writer: Normalize headings to sequential levels
2015-04-18MD Reader: Test for smart `'` after inline mathNikolay Yakimov1-0/+3
2015-04-16RST Writer: Tests for rubrics and heading normalizationNikolay Yakimov1-0/+79
2015-04-13LaTeX Reader: Test for `^^` character escapesNikolay Yakimov1-0/+10
2015-03-28Merge branch 'master' of https://github.com/rootzlevel/pandoc into ↵John MacFarlane1-0/+4
rootzlevel-master Conflicts: src/Text/Pandoc/Readers/Org.hs
2015-03-28Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane9-19/+28
mpickering-errortype Conflicts: benchmark/benchmark-pandoc.hs src/Text/Pandoc/Readers/Markdown.hs src/Text/Pandoc/Readers/Org.hs src/Text/Pandoc/Readers/RST.hs tests/Tests/Readers/LaTeX.hs
2015-03-16Merge pull request #1968 from lierdakil/issue1607John MacFarlane1-0/+128
Fixes for multiple docx writer style bugs.
2015-03-15Merge pull request #1989 from zudov/shortcut_ref_link_prJohn MacFarlane1-1/+90
Support shortcut reference links in markdown writer
2015-03-10Support shortcut reference links in markdown writerKonstantin Zudov1-1/+90
Issue #1977 Most markdown processors support the [shortcut format] for reference links. Pandoc's markdown reader parsed this shortcuts unoptionally. Pandoc's markdown writer (with --reference-links option) never shortcutted links. This commit adds an extension `shortcut_reference_links`. The extension is enabled by default for those markdown flavors that support reading shortcut reference links, namely: - pandoc - strict pandoc - github flavoured - PHPmarkdown If extension is enabled, reader parses the shortcuts in the same way as it preveously did. Otherwise it would parse them as normal text. If extension is enabled, writer outputs shortcut reference links unless doing so would cause problems (see test cases in `tests/Tests/Writers/Markdown.hs`).
2015-03-09Org reader: add support for smart punctuationCraig S. Bosma1-0/+24
2015-03-08LaTeX reader: allow non-empty colsep in tablesMathias Schenner1-0/+5
The `tabular` environment allows non-empty column separators with the "@{...}" syntax. Previously, pandoc would fail to parse tables if a non-empty colsep was present. With this commit, these separators are still ignored, but the table gets parsed. A test case is included.
2015-03-08LaTeX reader: allow valign argument in tablesMathias Schenner1-0/+3
The `tabular` environment takes an optional parameter for vertical alignment. Previously, pandoc would fail to parse tables if this parameter was present. With this commit, the parameter is still ignored, but the table gets parsed. A test case is included.
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 Yakimov1-4/+4
2015-03-03Initial tests for writerNikolay Yakimov1-0/+128
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-21Docx reader: add test for verbatim in sub/superscript.Jesse Rosenthal1-0/+4
2015-02-19Docx reader: Add tests for new list style parsing.Jesse Rosenthal1-0/+4
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-13Docx reader: test lists in table cells.Jesse Rosenthal1-0/+4
2015-01-21Docx Reader: Add test for VML images.Jesse Rosenthal1-0/+4
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-15Improved texorpdfstring patch #1148.John MacFarlane1-1/+1
* 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 MacFarlane1-1/+1
wilx-use-texorpdfstring Conflicts: src/Text/Pandoc/Writers/LaTeX.hs tests/Tests/Writers/LaTeX.hs
2014-12-15Merge pull request #1805 from bergey/rstJohn MacFarlane1-18/+37
RST Reader - Improved Role Support
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 Bergey1-1/+1
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 Bergey1-18/+37
2014-12-08Merge pull request #1746 from shelf/dw-ext-imagesMatthew Pickering1-0/+2
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-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-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 Humphries1-0/+2
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-10-30TWiki Reader: add basic syntax testAlexander Sulfrian1-0/+3
2014-10-25Docx test: Remove Danish header test.Jesse Rosenthal1-4/+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 Rosenthal1-0/+4
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-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-18Merge pull request #1680 from shelf/masterJohn MacFarlane1-0/+37
Respect indent when parsing Org bullet lists