aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
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 MacFarlane4-30/+36
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 MacFarlane2-0/+81
RST Writer: Normalize headings to sequential levels
2015-04-17Merge pull request #2092 from lierdakil/issue1909John MacFarlane1-0/+3
MD Reader: Smart apostrophe after inline math
2015-04-17LaTeX template: redefine `\paragraph`, `\subparagraph`...John MacFarlane3-0/+18
to behave more like section headers. Closes #1658.
2015-04-18MD Reader: Test for smart `'` after inline mathNikolay Yakimov1-0/+3
2015-04-16RST Writer: Tests for rubrics and heading normalizationNikolay Yakimov2-0/+81
2015-04-13LaTeX template: include grffile together with graphicx.John MacFarlane1-1/+1
This properly handles filenames containing spaces and dots. Closes #2074.
2015-04-12Merge pull request #2072 from lierdakil/latex-reader-cleanupJohn MacFarlane1-0/+10
LaTeX Reader: Code cleanup
2015-04-12OpenDocument template: use `text:p` instead of `text:h` for title.John MacFarlane1-1/+1
Using `text:h` causes problems with numbering. Closes #2059. Thansk to @nkalvi for diagnosing this.
2015-04-13LaTeX Reader: Test for `^^` character escapesNikolay Yakimov1-0/+10
2015-04-12ODT Writer: Figure captions - Tests updateNikolay Yakimov2-5/+6
2015-04-07RST writer: better handling of raw latex inline.John MacFarlane1-1/+5
We use `` :raw-latex:`...` `` and add a definition for this role to the template. Closes #1961.
2015-03-30Latex Reader: More tests for corner casesNikolay Yakimov2-1/+9
2015-03-30Latex Reader: Test for para starting with latex macroNikolay Yakimov2-1/+6
2015-03-30LaTeX Reader: check for block-level newcommand aliases in blockCommandNikolay Yakimov2-1/+24
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 'master' of github.com:jgm/pandocJohn MacFarlane1-1/+0
2015-03-28Fixed typo in lhs-test.html.John MacFarlane1-1/+0
2015-03-28Merge branch 'mpickering-errortype'John MacFarlane9-19/+28
2015-03-28Fixed lhs writer tests (overflow-x, not x-overflow).John MacFarlane2-2/+2
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-28Updated tests for new highlighting-kate behavior.John MacFarlane2-4/+7
2015-03-16Merge pull request #1968 from lierdakil/issue1607John MacFarlane10-0/+162
Fixes for multiple docx writer style bugs.
2015-03-15AsciiDoc writer: avoid wrapping after list marker.John MacFarlane1-1/+1
Closes #1858.
2015-03-15AsciiDoc writer: insert some needed blank lines.John MacFarlane1-0/+5
Closes #1860.
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 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