aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests
AgeCommit message (Collapse)AuthorFilesLines
2014-05-04Added test for #1154.John MacFarlane1-0/+9
2014-05-03Added Tests.Writer.AsciiDoc to repository.John MacFarlane1-0/+37
2014-05-03Distinguish tight and loose lists in Docbook outputNeil Mayhew1-11/+188
Determined by the first block of the first item being Plain.
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-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-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-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 MacFarlane1-0/+52
Docbook output of Line Blocks
2014-04-13Merge pull request #1239 from tarleb/org-linebreakJohn MacFarlane1-0/+4
Org linebreaks
2014-04-12Add some unit tests for Writers.DocbookNeil Mayhew1-0/+52
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-12Org reader: Read linebreaksAlbert Krewinkel1-0/+4
Linebreaks are marked by the string `\\` at the end of a line.
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-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-03-04Merge branch 'master' of https://github.com/mb21/pandoc into mb21-masterJohn MacFarlane1-1/+1
2014-03-04Add a simple Emacs Org-mode readerAlbert Krewinkel1-0/+533
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 Writermb211-1/+1
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-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-22Fixed bug with intraword emphasis.John MacFarlane1-0/+5
Closes #1066.
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 MacFarlane1-4/+6
Allows test suite to work with cabal sandboxes. Previously we hard-coded the build directory.
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 RST and LaTeX readers.John MacFarlane1-5/+5
This will give automatic unique identifiers, unless `-auto_identifiers` is specified.
2013-08-26Added markdown citation parsing test.John MacFarlane1-0/+4
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-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-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-20Create Cite element even if no matching reference in the biblio.John MacFarlane1-1/+1
* 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-17Add extra pair of test files for dokuwiki writer (#386)claremacrae1-1/+6
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-16LaTeX writer: Avoid problem with footnotes in unnumbered headers.John MacFarlane1-0/+6
Closes #940. Added test case.
2013-08-10Added Tests.Walk.John MacFarlane1-0/+47
This verifies that walk and query match the generic traversals.
2013-08-10Adjustments for new Format newtype.John MacFarlane1-4/+4
2013-07-21LaTeX reader: Don't add spurious ", " to citation suffixes.John MacFarlane1-18/+18
This is added when needed in Text.Pandoc.Biblio anyway.
2013-07-14Initial work to create dokuwiki writer (#386)Clare Macrae1-1/+1
In this first version, all dokuwiki files are straight copies of the media wiki counterparts.