aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-08-10Removed OMath module, depend on texmath >= 0.8.John MacFarlane1-1/+1
2014-08-09Docx Tests: Updated for reading sym elementMatthew Pickering2-1/+1
2014-08-09Added test for sym elementMatthew Pickering2-1/+1
2014-08-09Updated EPUB testsMatthew Pickering1-10/+10
2014-08-08Merge branch 'newbranch' of https://github.com/mpickering/pandoc into ↵John MacFarlane1-1/+23
mpickering-newbranch Conflicts: src/Text/Pandoc/Readers/EPUB.hs
2014-08-08Plain writer: Use ALL CAPS for level 1 headers.John MacFarlane1-15/+15
2014-08-08Added tests for collapseFilePathMatthew Pickering1-1/+23
2014-08-08Markdown writer: Respect -raw_html.John MacFarlane1-1/+1
pandoc -t markdown-raw_html should not emit any raw HTML, even span and div tags that go with pandoc Span and Div elements. Cleaned up a bit of the logic with extensions and plain.
2014-08-08Textile reader: fixed list parsing bug. Closes #1500.John MacFarlane2-0/+10
2014-08-07EPUB test renaming.John MacFarlane5-2/+2
Renamed epub test files so they're identified more clearly as epub: features.{epub,native} -> epub.features.{epub,native}, and similarly with formatting.{epub,native}. Added epub test files to cabal file, so they'll be included in the tarball.
2014-08-07HTML reader: Really ignore DOCTYPE and xml declarations.John MacFarlane2-25/+0
This actually does what d71b013841f3c9c8c595591e312a31df16a728cb said it did. Revised epub tests to remove the repeated DOCTYPE and xml tags.
2014-08-07Merge pull request #1488 from mpickering/epubfixesJohn MacFarlane1-19/+19
EPUB Reader: Improved image extraction
2014-08-07EPUB tests: Updated test fileMatthew Pickering1-19/+19
2014-08-07Docx reader: Test inline image code.Jesse Rosenthal3-1/+7
2014-08-04Merge branch 'epubend' of https://github.com/mpickering/pandoc into ↵John MacFarlane5-1/+942
mpickering-epubend Conflicts: pandoc.cabal
2014-08-03Correctly implement capitalisation.Artyom Kazak2-0/+23
Using `map toUpper` to capitalise text is wrong, as e.g. “Straße” should be converted to “STRASSE”, which is 1 character longer. This commit adds a `capitalize` function and replaces 2 identical implementations in different modules (`toCaps` and `capitalize`) with it.
2014-07-31Merge branch 'underline-option' of https://github.com/jkr/pandocJohn MacFarlane1-1/+1
2014-07-31Update docx test to interpret single underline as emph.Jesse Rosenthal1-1/+1
2014-07-31EPUB Reader: Added testsMatthew Pickering5-1/+942
2014-07-31Remove now unneeded JSON test file.Jesse Rosenthal1-1/+0
2014-07-31Docx tests: rewrite mediabag tests.Jesse Rosenthal5-21/+43
This will allow us to test the whole mediabag (making sure, for example, that images are added with the correct keys) instead of just individual extracted images. We compare each entry in the media bag to an image extracted on the fly from the docx. As a result, we only need one file to test with. The image in the current tests was also replaced with a smaller one.
2014-07-31New module, Text.Pandoc.MediaBag.John MacFarlane1-1/+1
Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid.
2014-07-31Made MediaBag a newtype, and added mime type information to media.John MacFarlane1-2/+3
Shared now exports functions for interacting with a MediaBag: - `emptyMediaBag` - `lookuMedia` - `insertMedia` - `mediaDirectory` - `extractMediaBag`
2014-07-30Docx test: Test image from media bag.Jesse Rosenthal1-0/+7
2014-07-30Docx tests: Add test image.Jesse Rosenthal1-0/+0
This is the cow image extracted from `docx.image.docx`.
2014-07-30Docx tests: Added media test comparison function.Jesse Rosenthal1-0/+19
Also tell pandoc.cabal that we'll be needing base64, since we want to compare strings here.
2014-07-30Updated RTF writer tests.John MacFarlane1-2/+2
2014-07-30Docx reader: change tests to make use of media bag.Jesse Rosenthal2-2/+3
2014-07-29LaTeX writer: use \(..\) instead of $..$ for inline math.John MacFarlane2-7/+7
Closes #1464.
2014-07-29Merge pull request #1463 from jkr/metadataJohn MacFarlane5-0/+20
Make metadata out of styled pars
2014-07-29Add and update docx tests in pandoc.cabal.Jesse Rosenthal5-6/+0
2014-07-29Docx reader: Make metavalues out of styled paragraphs.Jesse Rosenthal7-0/+26
This will make paragraphs styled with `Author`, `Title`, `Subtitle`, `Date`, and `Abstract` into pandoc metavalues, rather than text. The implementation only takes those elements from the beginning of the document (ignoring empty paragraphs). Multiple paragraphs in the `Author` style will be made into a metaList, one paragraph per item. Hard linebreaks (shift-return) in the paragraph will be maintained, and can be used for institution, email, etc.
2014-07-27Markdown writer: More improvements to 'plain' output, updated tests.John MacFarlane3-107/+161
Math now appears in unicode if possible, without the distracting italics around identifiers. Blank lines around headers are more consistent. Footnotes appear in regular [n] style.
2014-07-27Txt2Tags Reader: Added testsMatthew Pickering5-1/+1784
2014-07-25Fixed runtime error with compactify'DL on certain lists.John MacFarlane1-0/+10
Closes #1452. Added test.
2014-07-23DocBook reader: Better handle elements inside code environments.John MacFarlane2-0/+4
Of course, we can't include structure in the code block, but this way we at least preserve the text. Closes #1449.
2014-07-20HTML reader: parse Div and Span elements even without `--parse-raw`.John MacFarlane1-1/+1
Closes #1434.
2014-07-20Markdown reader: revised definition list syntax (closes #1429).John MacFarlane2-0/+53
* This change brings pandoc's definition list syntax into alignment with that used in PHP markdown extra and multimarkdown (with the exception that pandoc is more flexible about the definition markers, allowing tildes as well as colons). * Lazily wrapped definitions are now allowed; blank space is required between list items; and the space before definition is used to determine whether it is a paragraph or a "plain" element. * For backwards compatibility, a new extension, `compact_definition_lists`, has been added that restores the behavior of pandoc 1.12.x, allowing tight definition lists with no blank space between items, and disallowing lazy wrapping.
2014-07-20Org reader: text adjacent to a list yields a Plain, not Para.John MacFarlane1-7/+7
This gives better results for tight lists. Closes #1437. An alternative solution would be to use Para everywhere, and never Plain. I am not sufficiently familiar with org to know which is best. Thoughts, @tarleb?
2014-07-20AsciiDoc writer: Double markers in intraword emphasis.John MacFarlane2-7/+26
Closes #1441.
2014-07-17Org reader: Respect :exports header arguments on code blocksCraig S. Bosma1-0/+60
Adds support to the org reader for conditionally exporting either the code block, results block immediately following, both, or neither, depending on the value of the `:exports` header argument. If no such argument is supplied, the default org behavior (for most languages) of exporting code is used.
2014-07-15Merge pull request #1430 from jkr/anchor-fix-2John MacFarlane3-0/+6
Fix auto identified headers when already auto-id'ed
2014-07-15LaTeX writer: Use \nolinkurl in email autolinks.John MacFarlane1-1/+2
This allows them to be styled using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
2014-07-15Docx reader: Add testJesse Rosenthal3-0/+6
Test auto ident header anchors with pandoc-generated pandoc.
2014-07-13Use raw HTML for complex block quotes.John MacFarlane1-2/+3
As far as I can see, dokuwiki markup is pretty limited in what can go in a `>` block quote: just a single line of paragraph text. (#1398)
2014-07-13DokuWiki writer: Use raw HTML for complex lists...John MacFarlane1-19/+35
as in the mediawiki writer. The dokuwiki markup isn't able to handle multiple block-level items within a list item, except in a few special cases (e.g. code blocks, and these must be started on the same line as the preceding paragraph). So we fall back to raw HTML for these. Perhaps there is a better solution. We can "fake" multiple paragraphs within list items using hard line breaks (`\\`), but we must keep everything on one line. (#1398)
2014-07-13DokuWiki writer: Normalize to collapse adjacent raw HTML blocks.John MacFarlane1-30/+0
2014-07-13DokuWiki writer: Updated tests.John MacFarlane1-51/+69
2014-07-13Merge branch 'claremacrae-dokuwiki'.John MacFarlane1-3/+3
Use removeFormatting from Shared instead of the custom unfancy function.
2014-07-10Added failing test for issue #1121.John MacFarlane1-0/+2