aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-05-03DocBook writer: Small tweaks to last commit.John MacFarlane1-1/+1
* Use isTightList from Shared. * Adjust writer test, since isTightList is a bit different from what was used before. Closes #1250.
2014-05-03Distinguish tight and loose lists in Docbook outputNeil Mayhew2-41/+218
Determined by the first block of the first item being Plain.
2014-05-02Fixed empty reference links. Closes #1186.John MacFarlane2-1/+12
Includes test.
2014-05-01Markdown reader: Make one-column pipe tables work.John MacFarlane2-1/+19
Closes #1218.
2014-05-01Merge pull request #1272 from tarleb/link-typesJohn MacFarlane1-0/+26
Org reader: add support for custom link types
2014-05-01Org reader: Add support for custom link typesAlbert Krewinkel1-0/+26
Org allows users to define their own custom link types. E.g., in a document with a lot of links to Wikipedia articles, one can define a custom wikipedia link-type via #+LINK: wp https://en.wikipedia.org/wiki/ This allows to write [[wp:Org_mode][Org-mode]] instead of the equivallent [[https://en.wikipedia.org/wiki/Org_mode][Org-mode]].
2014-04-30Updated tests for new LaTeX template.John MacFarlane1-16/+6
2014-04-30RST reader: Some fixes to last change, and use "author" not "authors".John MacFarlane1-1/+1
(in metadata)
2014-04-30ConTeXt writer: Improved autolinks.John MacFarlane1-6/+4
Closes #1270.
2014-04-29Added Cite to Arbitrary instance.John MacFarlane1-5/+4
See #1269. This reveals some test failures.
2014-04-29ADded SmallCaps to Arbitrary instance.John MacFarlane1-1/+1
2014-04-26Update latex reader test for change in latex reader.John MacFarlane1-1/+1
We use 'author' for metadata, not 'authors'.
2014-04-25Merge pull request #1265 from tarleb/org-linksJohn MacFarlane1-0/+39
Improvements handling of internal links
2014-04-25Org reader: Enable internal linksAlbert Krewinkel1-0/+25
Internal links in Org are possible by using an anchor-name as the target of a link: [[some-anchor][This]] is an internal link. It links <<some-anchor>> here.
2014-04-24Markdown writer: Use proper escapes to avoid unwanted lists.John MacFarlane1-5/+5
Previously we used 0-width spaces, an ugly hack. Closes #980.
2014-04-24Org reader: Recognize plain and angle linksAlbert Krewinkel1-0/+14
This adds support for plain links (like http://zeitlens.com) and angle links (like <http://moltkeplatz.de>).
2014-04-19Org reader: Allow for compact definition listsAlbert Krewinkel1-0/+12
Use `Text.Pandoc.Shared.compactify'DL` to allow for compact definition lists.
2014-04-19Org reader: Fix parsing of footnotesAlbert Krewinkel1-0/+42
Footnotes can consist of multiple blocks and end only at a header or at the beginning of another footnote. This fixes the previous behavior, which restricted notes to a single paragraph.
2014-04-19Org reader: Apply captions to code blocks and tablesAlbert Krewinkel1-1/+30
The `Table` blocktype already takes the caption as an argument, while code blocks are wrapped in a `Div` block together with a labelling `Span`.
2014-04-18Org reader: Add support for plain LaTeX fragmentsAlbert Krewinkel1-1/+19
This adds support for LaTeX fragments like the following: ``` \begin{equation} \int fg \mathrm{d}x \end{equation} ```
2014-04-18Org reader: Fix parsing of loose listsAlbert Krewinkel1-5/+16
Loose lists (i.e. lists with blankline separated items), were parsed as multiple lists, each containing a single item. This patch fixes this issue.
2014-04-17Org reader: Support more types of '#+BEGIN_<type>' blocksAlbert Krewinkel1-23/+74
Support for standard org-blocks is improved. The parser now handles "HTML", "LATEX", "ASCII", "EXAMPLE", "QUOTE" and "VERSE" blocks in a sensible fashion.
2014-04-17Org reader: Support footnotesAlbert Krewinkel1-0/+4
2014-04-13Merge pull request #1240 from neilmayhew/masterJohn MacFarlane3-4/+56
Docbook output of Line Blocks
2014-04-13Merge pull request #1239 from tarleb/org-linebreakJohn MacFarlane2-1/+5
Org linebreaks
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