aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-01-07Updated tests for latest texmath.John MacFarlane1-1/+1
2014-01-01HTML reader: Parse name/content pairs from meta tags as metadata.John MacFarlane1-1/+1
Closes #1106.
2013-12-27Removed old MarkdownTest_1.0.3 directory (not currently used).John MacFarlane45-3905/+0
Closes #1104.
2013-12-19HLint: redundant parensHenry de Valence2-3/+3
Remove parens enclosing a single element.
2013-12-19HLint: Remove lambdas.Henry de Valence1-2/+2
2013-12-09Don't use tilde code blocks with braced attributes in gfm output.John MacFarlane1-2/+2
A consequence of this change is that the backtick form will be preferred in general if both are enabled. I think that is good, as it is much more widespread than the tilde form. Closes #1084.
2013-12-06Small change to HTML reader tests.John MacFarlane1-9/+9
"$" is now a special character.
2013-12-04Add booktabs package for LaTeX tablesJose Luis Duran1-45/+45
[ci skip]
2013-11-30Markdown writer: Fix rendering of tight sublists.John MacFarlane1-0/+4
E.g. - foo - bar - baz Previously a spurious blank line was included before the last item. Closes #1050.
2013-11-30ODT writer: Add `draw:name` attribute to `draw:frame` elements.John MacFarlane1-2/+2
This is reported to be necessary to avoid an error from recent versions of Libre Office when files contain more than one image. Closes #1069. Thanks to wmanley for reporting and diagnosing the problem.
2013-11-30Fixed tests for new ConTeXt writer behavior.John MacFarlane2-9/+10
2013-11-24MediaWiki reader: Accept image links in more languagesJaime Marquínez Ferrándiz2-0/+3
In some of the Wikipedia versions the local version of 'File' is used (for example 'Archivo' in Spanish)
2013-11-22ConTeXt writer: Use setupcaption to separate style from content.John MacFarlane1-1/+3
Instead of adding 'nunumber' every time we place a figure... Closes #1067.
2013-11-22Fixed bug with intraword emphasis.John MacFarlane1-0/+5
Closes #1066.
2013-11-18LaTeX reader: Parse contents of curly quotes or matched `"` as quotes.John MacFarlane1-1/+1
2013-11-17MediaWiki reader: Add automatic header identifiers.John MacFarlane1-29/+29
2013-11-12HTML/EPUB footnotes: Put `<sup>` tag inside `<a>` tags.John MacFarlane1-3/+3
This allows better control of formatting, since the `<a>` tags have a distinguishing class. Closes #1049.
2013-11-01TexMath: Export readTeXMath', which attends to display/inline.John MacFarlane5-5/+5
Deprecate readTeXMath, and use readTeXMath' in all the writers. Require texmath >= 0.6.5.
2013-10-21Fix definition lists with internal links in terms (closes #1032).John MacFarlane1-0/+5
This fix puts braces around a term that contains an internal link, to avoid problems with square brackets.
2013-10-20Pass the buildDir as first argument to test suite.John MacFarlane2-5/+10
Allows test suite to work with cabal sandboxes. Previously we hard-coded the build directory.
2013-10-18MediaWiki reader: Trim contents of `<math>` tags.John MacFarlane2-0/+3
Otherwise we get problems when converting to markdown. Closes #1027.
2013-09-24Updated opendocument tests.John MacFarlane1-52/+65
2013-09-14Markdown reader: unresolved citations fall back to original text.John MacFarlane1-14/+14
Not ???. Reason: Less surprising, especially for people using @ as in twitter.
2013-09-11Mediawiki: Parse an image + caption in a para by itself as a figure.John MacFarlane1-4/+4
2013-09-06Markdown writer: Fixed bugs in YAML header output.John MacFarlane1-1/+1
2013-09-01Markdown reader: Don't autolink a bare URI that is followed by `</a>`.John MacFarlane1-1/+4
Closes #937.
2013-09-01Use registerHeader in Textile reader.John MacFarlane1-29/+29
This produces automatic header identifiers, unless `auto_identifiers` extension is disabled. Closes #967.
2013-09-01Use registerHeader in RST and LaTeX readers.John MacFarlane8-69/+69
This will give automatic unique identifiers, unless `-auto_identifiers` is specified.
2013-08-28Implement definition lists in dokuwiki writer (#386) - credit: James Smaldon claremacrae1-9/+12
2013-08-26Added markdown citation parsing test.John MacFarlane2-0/+21
2013-08-25Merge pull request #961 from nougad/add_latex_listings_labelJohn MacFarlane2-0/+14
Write id for code block to label attr in latex when listing is used
2013-08-25Removed tests relating to citation processing.John MacFarlane7-1360/+0
2013-08-24Removed dependency on citeproc-hs.John MacFarlane1-14/+0
Going forward we'll use pandoc-citeproc, as an external filter. The `--bibliography`, `--csl`, and `--citation-abbreviation` fields have been removed. Instead one must include `bibliography`, `csl`, or `csl-abbrevs` fields in the document's YAML metadata. The filter can then be used as follows: pandoc --filter pandoc-citeproc The `Text.Pandoc.Biblio` module has been removed. Henceforth, `Text.CSL.Pandoc` from pandoc-citations can be used by library users. The Markdown and LaTeX readers now longer format bibliographies and citations. That must be done using `processCites` or `processCites'` from Text.CSL.Pandoc. All bibliography-related fields have been removed from `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`, `readerReferences`, `readerCitationStyle`. API change.
2013-08-23Added failing test for definition list output in dokuwiki writer (#386)claremacrae1-45/+19
2013-08-22Write id for code block to label attr in latex when listing is usedFlorian Eitel2-0/+14
The code: ~~~{#test} asdf ~~~ gets compiled to html: <pre id="test"> asdf </pre> So it is possible to link to the identifier `test` But this doesn't happen on latex When using the listings package (`--listings`) it is possible to set the identifier using the `label=test` property: \begin{lstlisting}[label=id] hi \end{lstlisting} And this is exactly what this patch is doing. Modified LaTeX Reader/Writer and added tests for this.
2013-08-20Merge branch 'altcite'John MacFarlane4-46/+68
2013-08-20Create Cite element even if no matching reference in the biblio.John MacFarlane4-46/+68
* Add ??? as fallback text for non-resolved citations. * Biblio: Put references (including a header at the end of the document, if one exists) inside a Div with class "references". This gives some control over styling of references, and allows scripts to manipulate them. * Markdown writer: Print markdown citation codes, and disable printing of references, if `citations` extension is enabled. NOTE: It would be good to improve what citeproc-hs does for a nonexistent key.
2013-08-19Scale LaTeX tables so they don't exceed columnwidth.John MacFarlane1-32/+32
2013-08-19Bullet and ordered lists now always simple in dokuwiki writer (#386)claremacrae1-28/+15
2013-08-19Removed unnecessary line-break after hard break in dokuwiki writer (#386)claremacrae1-2/+1
2013-08-18Adjusted writers and tests for change in parsing of div/span.John MacFarlane13-98/+167
Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs. Otherwise Div and Span are "transparent" block containers.
2013-08-18Stop plain text ** and __ becoming formatting in dokuwiki writer (#386)claremacrae1-1/+1
2013-08-18Stop plain text // becoming an italic marker in dokuwiki writer (#386)claremacrae1-1/+1
When the original document had text containing //, this was previously included, unchanged, in the dokuwiki output, and this interacted badly with later, intended, formating text.
2013-08-18Treat inline code blocks like <code> instead of <tt> in dokuwiki writer (#386)claremacrae2-7/+7
Done because I noticed that in the Autolinks section of writer.dokuwiki, the URL in inlined code was getting auto-linked, when it wasn't supposed to. This also meant that any inline code examples that had text that looked like dokuwiki syntax could break the formatting of later text.
2013-08-17Nasty hack to stop C comments in inline code becoming italics in dokuwiki ↵claremacrae1-1/+1
writer (#386)
2013-08-17Add more tests for dokuwiki writer (#386)claremacrae2-2/+5
2013-08-17Add extra pair of test files for dokuwiki writer (#386)claremacrae3-1/+8
I've found some incorrect behaviours with the dokuwiki output, for which extra test cases will be needed - that aren't covered by the standard pandoc test input files.
2013-08-17Fixed inlined code in dokuwiki writer (#386)claremacrae1-6/+6
2013-08-17Don't add entities in <code> blocks in dokuwiki writer (#386)claremacrae1-10/+10
2013-08-17Implement <code> blocks in dokuwiki writer (#386)claremacrae1-15/+15