aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-04-12Add some unit tests for Writers.DocbookNeil Mayhew2-0/+54
These are primarily aimed at testing the new treatment of line breaks, but hopefully other tests can be added more easily now as features and changes are implemented in the writer. Adapted from Tests.Writers.HTML.tests.
2014-04-12Improve handling of hard line breaks in Docbook writerNeil Mayhew1-4/+2
* Use a <literallayout> for the entire paragraph, not just for the newline character * Don't let LineBreaks inside footnotes influence the enclosing paragraph
2014-04-12Org reader: Read linebreaksAlbert Krewinkel1-0/+4
Linebreaks are marked by the string `\\` at the end of a line.
2014-04-12Org writer: Fix output for linebreaksAlbert Krewinkel1-1/+1
Hard linebreaks in Org mode are represented by the string "\\" as the last characters in a line. Adds this feature to the Org-mode writer.
2014-04-12Org reader: Add support for figuresAlbert Krewinkel1-0/+21
Support for figures (images with name and caption) is added.
2014-04-11Org reader: Fix parsing of sub-/superscript expressionsAlbert Krewinkel1-9/+30
This fixes the org-reader's handling of sub- and superscript expressions. Simple expressions (like `2^+10`), expressions in parentheses (`a_(n+1)`) and nested sexp (like `a_(nested()parens)`) are now read correctly.
2014-04-10Org reader: Support more inline/display math variantsAlbert Krewinkel1-6/+30
Support all of the following variants as valid ways to define inline or display math inlines: - `\[..\]` (display) - `$$..$$` (display) - `\(..\)` (inline) - `$..$` (inline) This closes #1223. Again.
2014-04-09Org reader: Precise rules for the recognition of markupAlbert Krewinkel1-2/+23
The inline parsers have been rewritten using the org source code as a reference. This fixes a couple of bugs related to erroneous markup recognition.
2014-04-07Org reader: Support inline math (like $E=mc^2$)Albert Krewinkel1-0/+4
Closes #1223.
2014-04-06Org reader: Add support for definition listsAlbert Krewinkel1-3/+23
2014-04-05Textile reader: Better support for attributes.John MacFarlane1-1/+1
Instead of being ignored, attributes are now parsed and included in Span inlines. The output will be a bit different from stock textile: e.g. for `*(foo)hi*`, we'll get `<em><span class="foo">hi</span></em>` instead of `<em class="foo">hi</em>`. But at least the data is not lost.
2014-04-05Textile reader: Improved treatment of HTML spans (%).John MacFarlane1-1/+1
Closes #1115.
2014-04-05Merge pull request #1219 from tarleb/org-imagesJohn MacFarlane1-2/+14
Org-reader: support inline images, clean-up code, fix bugs
2014-04-05Org reader: Support inline imagesAlbert Krewinkel1-2/+10
2014-04-05Org reader: Fix parsing of nested inlinesAlbert Krewinkel1-0/+4
Text such as /*this*/ was not correctly parsed as a strong, emphasised word. This was due to the end-of-word recognition being to strict as it did not accept markup chars as part of a word. The fix involves an additional parser state field, listing the markup chars which might be parsed as part of a word.
2014-04-04DocBook reader/writer tests: use "authorgroup".John MacFarlane2-16/+20
2014-04-01MediaWiki reader: Fixed bug in certain nested lists.John MacFarlane2-0/+7
The bug: If a level 2 list was followed by a level 1 list, the first item of the level 1 list would be lost. Closes #1213.
2014-04-01Added HTML reader tests for empty strong, emph.John MacFarlane2-0/+2
2014-04-01Tests updated to reflect changes to readers.Matthew Pickering5-124/+132
Previously normalisation was handled by the `normalizeSpaces` function. The behavoir of the builder monoid is slightly different and melds together more items such as consecutive strings and spaces adjacent to line breaks. The tests have been changed to reflect this. All relevant tests passed when the string melding line of the builder monoid was commented out.
2014-03-24RTF writer: Fixed tables cells containing paragraphs.John MacFarlane1-92/+92
This moves \intbl after \pard.
2014-03-24Merge pull request #1068 from jaimeMF/mw-images-langsJohn MacFarlane2-0/+3
MediaWiki reader: Accept image links in more languages
2014-03-05HTML writer: Add colgroup around col tags.John MacFarlane1-0/+6
Also affects EPUB writer. Closes #877.
2014-03-04Merge branch 'master' of https://github.com/mb21/pandoc into mb21-masterJohn MacFarlane3-1/+3772
2014-03-04Add a simple Emacs Org-mode readerAlbert Krewinkel2-0/+535
The basic structure of org-mode documents is recognized; however, org-mode features like todo markers, tags etc. are not supported yet.
2014-02-28InDesign ICML Writermb213-1/+3772
2014-02-20Revised tests for new latex template.John MacFarlane3-3/+3
2014-02-15Enhanced Pandoc's support for rST roles.Merijn Verstraaten2-0/+34
rST parser now supports: - All built-in rST roles - New role definition - Role inheritance Issues/TODO: - Silently ignores illegal fields on roles - Silently drops class annotations for roles - Only supports :format: fields with a single format for :raw: roles, requires a change to Text.Pandoc.Definition.Format to support multiple formats. - Allows direct use of :raw: role, rST only allows indirect (i.e., inherited use of :raw:).
2014-01-22Fixed mediawiki ordered list parsing.John MacFarlane1-2/+2
Closes #1122.
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