aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
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
2014-07-10LaTeX writer: Put table captions above tables.John MacFarlane1-6/+3
The standard seems to be captions above tables. (See http://tex.stackexchange.com/questions/3243/why-should-a-table-caption-be-placed-above-the-table)
2014-07-08DokuWiki writer: Remove broken formatting from headings (#1398)Clare Macrae1-3/+3
2014-07-07Added test for issue #1330.John MacFarlane1-0/+6
2014-07-07Reorganized some markdown tests.John MacFarlane1-11/+9
2014-07-07Updated dokuwiki tests for latest changes to testsuite.native.John MacFarlane1-35/+35
2014-07-07Merge branch 'dokuwiki' of https://github.com/claremacrae/pandoc into ↵John MacFarlane7-0/+684
claremacrae-dokuwiki
2014-07-07Revamped raw HTML block parsing in markdown.John MacFarlane13-152/+228
- We no longer include trailing spaces and newlines in the raw blocks. - We look for closing tags for elements (but without backtracking). - Each block-level tag is its own RawBlock; we no longer try to consolidate them (though `--normalize` will do so). Closes #1330.
2014-07-02Revert "DokuWiki writer: Whitespace to a testsuite output file."Clare Macrae1-0/+1
This reverts commit 23d71b13e7b462229427e2437a8dd9c8f72d72f1. This is now resulting in a testsuite failure, and I can't see why it didn't do so before
2014-07-02DokuWiki writer: Span no longer swallows textClare Macrae1-1/+1
2014-07-02DokuWiki writer: Add new test showing that span swallows content.Clare Macrae3-0/+16
2014-07-02DokuWiki writer: Whitespace to a testsuite output file.Clare Macrae1-1/+0
This doesn't change the testsuite behaviour, but it does mean that all the testsuite output files are exactly identical to the output obtained by running the current pandoc.
2014-07-02DokuWiki writer: Retain unknown RawBlock and RawInline textClare Macrae1-2/+6
This added \cite and \begin latex to the testuite output.
2014-07-02DokuWiki output: Implement blockquotes properly Clare Macrae1-12/+12
TODO Also implement nested blockquotes.
2014-07-01Merge branch 'master' of git://github.com/jgm/pandoc into dokuwikiClare Macrae4-3/+12
2014-07-01Remove stray <div> and </div> from DokuWiki output (#386)Clare Macrae1-18/+9
2014-07-01Improved HTML Blocks in DokuWiki output (#386)Clare Macrae1-7/+14
For example, this fixes the display of a broken table, and it also fixes the various HTML horizontal rules.
2014-06-29Rewrote normalize for efficiency. (Closes #1385.)John MacFarlane1-3/+5
* Added normalizeInlines, normalizeBlocks. * Type signature is now more narrow, `Pandoc -> Pandoc` instead of `Data a :: a -> a`. Some users may need to change their uses of `normalize` to the newly exported `normalizeInlines` or `normalizeBlocks`.
2014-06-29Docx reader: Add tests for hanging indent handline.Jesse Rosenthal3-0/+7
We want to treat it as a plain paragraph if the hanging amount is greater to or equal to the left indent---i.e., if the first line has zero indentation. But we still want it to be a block quote if it starts to the right of the margin. Someone might format verse with wrapping lines with a hanging indent, for example.
2014-06-29Updated DokuWiki code and tests to work with latest code from jgm.Clare Macrae1-9/+3
The new code was got from inspecting changes in MediaWiki.hs This slightly changes the output of Div blocks, but I'm not convinced the original behaviour was really correct anyway. The code for handling Span does nothing for now, until I can work out the desired behaviour, and add tests for it.
2014-06-29Merge remote-tracking branch 'jgm/master' into dokuwikiClare Macrae157-6276/+7316
2014-06-28Update docx tests to reflect new expected behaviorJesse Rosenthal7-9/+9
Now doing auto ids for all headers, so tests should reflect that.
2014-06-28Change test result to match new behavior.Jesse Rosenthal1-2/+2
2014-06-25Track changes tests.Jesse Rosenthal7-4/+32
2014-06-25Docx reader: Add tests for basic track changesJesse Rosenthal5-0/+12
This is what seems like the sensible default: read in insertions, and ignore deletions. In the future, it would be good if options were available for either taking in deletions or keeping both in some scriptable format.
2014-06-24Docx Reader: add failing defintion list tests.Jesse Rosenthal3-0/+11
2014-06-24Docx reader: add failing tests for inline code and code blocks.Jesse Rosenthal5-0/+13
2014-06-23Merge pull request #1366 from jkr/reducible3John MacFarlane3-0/+5
Docx rewrite and cleanup (in terms of Reducible typeclass)
2014-06-23Add test for correctly trimming spaces in formatting.Jesse Rosenthal3-0/+5
This used to be fixed in the tree-walking. We need to make sure we're doing it right now.
2014-06-23LaTeX writer: Use `\textquotesingle` for `'` in inline code.John MacFarlane1-0/+2
Otherwise we get curly quotes in the PDF output. Closes #1364.
2014-06-22Docx reader tests: add tests for normalization deep in blocks.Jesse Rosenthal3-0/+10