aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-10-18Merge pull request #1700 from tarleb/org-emphasis-fixJohn MacFarlane1-0/+8
Org reader: fix rules for emphasis recognition
2014-10-18Org reader: Drop COMMENT document treesAlbert Krewinkel1-0/+12
Document trees under a header starting with the word `COMMENT` are comment trees and should not be exported. Those trees are dropped silently. This closes #1678.
2014-10-18Org reader: fix rules for emphasis recognitionAlbert Krewinkel1-0/+8
Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised strings. This is wrong, as `,` and `'` are forbidden border chars and may not occur on the inner border of emphasized text. This patch enables the reader to matches the reference implementation in that it reads the above strings as plain text.
2014-09-27Merge pull request #1601 from jkr/windowsfixJohn MacFarlane1-2/+1
Fix path-slashes inside archive for windows
2014-09-27Update tests for #1649Matthew Pickering1-1/+3
2014-09-25EPUB Tests: Seperating image testing from other featuresmpickering4-35/+8
2014-09-25Shared: Make collapseFilePath OS-agnosticmpickering1-18/+19
2014-09-09Updated tests for #1616 change.John MacFarlane1-0/+1
2014-09-09LaTeX writer: Test for protecting images in header.Jesse Rosenthal1-0/+3
2014-09-05Docx reader: Add test for polyglot headers.Jesse Rosenthal3-0/+14
Only Danish at the moment.
2014-09-04Org reader: Update TestsJesse Rosenthal1-1/+5
Test for markup after blank line.
2014-09-04Docx Reader: Add tests for numbered headers.Jesse Rosenthal3-0/+5
2014-09-02Docx reader: Modify mediabag test accordingly.Jesse Rosenthal1-2/+1
2014-08-31Merge pull request #1594 from jkr/itemFixJohn MacFarlane1-0/+7
Item fix
2014-08-31LaTeX writer: Add tests for header-in-item.Jesse Rosenthal1-0/+7
2014-08-31Markdown reader: better handling of paragraph in div.John MacFarlane13-13/+25
Previously text that ended a div would be parsed as Plain unless there was a blank line before the closing div tag. Test case: <div class="first"> This is a paragraph. This is another paragraph. </div> Closes #1591.
2014-08-30DokuWiki writer: Make tables prettier by aligning columns.John MacFarlane2-26/+26
Also cleaned up crufty code and added tests.
2014-08-30Textile reader: Improved table support.John MacFarlane1-52/+7
We can now handle all different alignment types, for simple tables only (no captions, no relative widths, cell contents just plain inlines). Other tables are still handled using raw HTML. Addresses #1585 as far as it can be addresssed, I believe.
2014-08-30Dokuwiki writer: Add a test for multiblock table cells.Jesse Rosenthal3-0/+19
We have to add a new file, because the original table tests don't look for this.
2014-08-29Merge pull request #1574 from jlduran/latex-horizontal-ruleJohn MacFarlane1-13/+13
LaTeX writer: Make Horizontal Rules more flexible
2014-08-29Merge branch 'ugly-tables' of https://github.com/jlduran/pandoc into ↵John MacFarlane1-93/+95
jlduran-ugly-tables
2014-08-29LaTeX writer: Add `\strut` to fix multiline tablesJose Luis Duran1-45/+45
See: http://tex.stackexchange.com/questions/34971
2014-08-28Docx reader: update tests for new table behavior.Jesse Rosenthal2-20/+30
2014-08-28LaTeX writer: Make Horizontal Rules more flexibleJose Luis Duran1-13/+13
Currently, pandoc has hard-coded the following in order to make horizontal rules in LaTeX: ```hs "\\begin{center}\\rule{3in}{0.4pt}\\end{center}" ``` Which is fine, but does not allow customizations. It also does not take into consideration the current line width. I'm proposing this change: ```diff @@ In Writers/LaTeX.hs: -"\\begin{center}\\rule{3in}{0.4pt}\\end{center}" +"\\begin{center}\\rule{0.5\\linewidth}{\\linethickness}\\end{center}" ```
2014-08-28LaTeX writer: Fix tablesJose Luis Duran1-61/+63
- [x] Fix a bug introduced in 66378062b622b0815a1a2ddce5d557e3ad13330c, which causes the table caption to repeat across all pages - [x] Address the issues discussed [here](https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J) regarding the extra vertical space. - [ ] NOTE: This will cause multiline table cells to appear unpadded. See http://tex.stackexchange.com/questions/34971 - [x] Use [`\tabularnewline`](http://tex.stackexchange.com/questions/78796) instead of `\\`.
2014-08-21Merge pull request #1553 from mpickering/masterJohn MacFarlane4-4/+5
Txt2Tags reader: Header is now parsed only if standalone flag is set
2014-08-21Txt2Tags Reader: Parse Meta informationmpickering2-3/+3
The header is now parsed as meta information. The first line is the `title`, the second is the `author` and third line is the `date`.
2014-08-20Txt2Tags reader: Header is now parsed only if standalone flag is setmpickering3-2/+3
2014-08-20More test updates.John MacFarlane2-2/+8
2014-08-20Updated tests.John MacFarlane1-1/+4
2014-08-16HTML reader: Parse appropriately styled span as SmallCaps.John MacFarlane2-0/+2
2014-08-16Docx reader: Test for character styles.Jesse Rosenthal3-0/+8
2014-08-14Markdown reader: Better handle quote characters in inline links.John MacFarlane2-2/+5
This was previously failing to be recognized as a link: [Test](http://en.wikipedia.org/wiki/Ward's_method) Closes #1534.
2014-08-14Make `raw_tex` extension non-default for textile reader, writer.John MacFarlane2-15/+0
Enable `raw_tex` extension in textile writer. Closes #1532.
2014-08-13Old tests: better path for test program.John MacFarlane1-2/+4
2014-08-13Make options work with test-pandoc.John MacFarlane1-4/+3
2014-08-13Revised tests directory.John MacFarlane81-83/+82
Renamed some tests, introducing subsidiary directories for fb2, docx, epub. Cleaned up tests in cabal file. Combined dokuwiki-writer and dokuwiki_inline_formatting tests.
2014-08-13Removed special testHook from Setup.John MacFarlane1-7/+12
This was just too fragile and dependent on a changing Cabal API (see #1526). Instead of passing the bulid directory to the test program, we now let the test program find itself (using executable-path) and then find the pandoc executable relative to itself.
2014-08-12Merge pull request #1528 from mpickering/epubtitlepageJohn MacFarlane3-0/+11
EPUB Reader: Ignores titlepage attribute
2014-08-13EPUB Tests: Added wasteland testMatthew Pickering3-0/+11
This epub contains many epub:type elements including footnotes and titlepage.
2014-08-12HTML writer: use 'uri' or 'email' class for autolinks.John MacFarlane1-5/+5
This allows them to be styled specially. Closes #1501.
2014-08-12Added mathml tests for docbook reader.John MacFarlane2-0/+50
2014-08-12Markdown reader: Improved parsing of indented code in list items.John MacFarlane2-0/+25
Indented code at the beginning of a list item must be indented eight spaces from the margin (or from the edge of the container), or four spaces past the list marker, whichever is farther. Some examples in `tests/markdown-reader-more.txt`.
2014-08-11Docx reader: combine inlines properly in dropcaps.Jesse Rosenthal1-2/+2
Make sure that adjacent inlines are combined properly in dropcaps. This updates the test results as well.
2014-08-11Docx: Add dropcap tests.Jesse Rosenthal3-4/+10
2014-08-11Merge pull request #1521 from jkr/emptyEmphJohn MacFarlane1-0/+0
Discard empty formatters
2014-08-11Docx reader test: Add an emphasized space to normalize test.Jesse Rosenthal1-0/+0
This should be ignored, so the output should be the same as the previous test.
2014-08-11Textile reader: list and HTML block parsing improvements.John MacFarlane2-6/+13
Closes #1513. Lists can now start without an intervening blank line. Also, html block-level tags that don't start a line are parsed as RawInline and don't interrupt paragraphs, as in RedCloth.
2014-08-11Docx Parse: Updated testsMatthew Pickering2-1/+1
2014-08-10Improved EPUB TestsMatthew Pickering4-334/+40
Rewrote features test to remove all unimplemented features. There are now all three examples of where an image can be included in the test. 1. Cover image 2. As a spine elemnt 3. In the document Tests have also been added to make sure that the mediabag contains all these images after processing.