summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-06-19Add tabs tests.Jesse Rosenthal
2014-06-19Fix notes test.Jesse Rosenthal
This previously allowed spaces at the beginning of a paragraph.
2014-06-19Add ReaderOptions to the docx testsJesse Rosenthal
This will allow for testing different media embedding (in addition to any other applicable options.)
2014-06-19Haddock writer: Use _____ for hrule.John MacFarlane
Avoids interpretation as list.
2014-06-18Updated haddock writer tests.John MacFarlane
2014-06-18Small fix to haddock "tables".John MacFarlane
2014-06-18Revised haddock reader tests for changes in reader.John MacFarlane
2014-06-18Added haddock writer tests.John MacFarlane
2014-06-18Rewrote haddock reader to use haddock-library.John MacFarlane
This brings pandoc's rendering of haddock markup in line with the new haddock. Note that we preserve line breaks in `@` code blocks, unlike the earlier version. Modified tests pass. More tests would be good.
2014-06-16Naming: Use Docx instead of DocX.John MacFarlane
For consistency with the existing writer.
2014-06-16Merge branch 'docx' of https://github.com/jkr/pandoc into jkr-docxJohn MacFarlane
2014-06-16Org reader: make tildes create inline code.John MacFarlane
Closes #1345. Also relabeled 'code' and 'verbatim' parsers to accord with the org-mode manual. I'm not sure what the distinction between code and verbatim is supposed to be, but I'm pretty sure both should be represented as Code inlines in pandoc. The previous behavior resulted in the text not appearing in any output format.
2014-06-16Updated HTML reader table test - should be simple table.John MacFarlane
2014-06-16Added failing HTML reader test for table.John MacFarlane
See #1341.
2014-06-16Add DocX tests to test-pandoc.hsJesse Rosenthal
2014-06-16Add DocX automated tests.Jesse Rosenthal
Note this makes use of input and output files in the tests/ dir.
2014-06-01Updated tests for c8bc70a6bb12e0fbfadadb9480efafb3be4f11a5.John MacFarlane
2014-05-28Merge pull request #1302 from tarleb/inline-latexJohn MacFarlane
Org reader: support for inline LaTeX
2014-05-27Markdown reader: inline math must have nonspace before final `$`.John MacFarlane
Closes #1313.
2014-05-20Org reader: support for inline LaTeXAlbert Krewinkel
Inline LaTeX is now accepted and parsed by the org-mode reader. Both, math symbols (like \tau) and LaTeX commands (like \cite{Coffee}), can be used without any further escaping.
2014-05-14Org reader: support Pandocs citation extensionAlbert Krewinkel
Citations are defined via the "normal citation" syntax used in markdown, with the sole difference that newlines are not allowed between "[...]". This is for consistency, as org-mode generally disallows newlines between square brackets. The extension is turned on by default and can be turned off via the default syntax-extension mechanism, i.e. by specifying "org-citation" as the input format. Move `citeKey` from Readers.Markdown into Parsing The function can be used by other readers, so it is made accessible for all parsers.
2014-05-10Org reader: Fix block parameter reader, relax constraintsAlbert Krewinkel
The reader produced wrong results for block containing non-letter chars in their parameter arguments. This patch relaxes constraints in that it allows block header arguments to contain any non-space character (except for ']' for inline blocks). Thanks to Xiao Hanyu for noticing this.
2014-05-09Org reader: Fix parsing of blank lines within blocksAlbert Krewinkel
Blank lines were parsed as two newlines instead of just one. Thanks to Xiao Hanyu (@xiaohanyu) for pointing this out.
2014-05-09Org reader: Support arguments for code blocksAlbert Krewinkel
The general form of source block headers (`#+BEGIN_SRC <language> <switches> <header arguments>`) was not recognized by the reader. This patch adds support for the above form, adds header arguments to the block's key-value pairs and marks the block as a rundoc block if header arguments are present. This closes #1286.
2014-05-06Updated tests for template changes.John MacFarlane
2014-05-06Org reader: Read inline code blocksAlbert Krewinkel
Org's inline code blocks take forms like `src_haskell(print "hi")` and are frequently used to include results from computations called from within the document. The blocks are read as inline code and marked with the special class `rundoc-block`. Proper handling and execution of these blocks is the subject of a separate library, rundoc, which is work in progress. This closes #1278.
2014-05-04Added test for #1154.John MacFarlane
2014-05-03Added Tests.Writer.AsciiDoc to repository.John MacFarlane
2014-05-03AsciiDoc writer: Added test for empty table cells.John MacFarlane
2014-05-03DocBook writer: Small tweaks to last commit.John MacFarlane
* 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 Mayhew
Determined by the first block of the first item being Plain.
2014-05-02Fixed empty reference links. Closes #1186.John MacFarlane
Includes test.
2014-05-01Markdown reader: Make one-column pipe tables work.John MacFarlane
Closes #1218.
2014-05-01Merge pull request #1272 from tarleb/link-typesJohn MacFarlane
Org reader: add support for custom link types
2014-05-01Org reader: Add support for custom link typesAlbert Krewinkel
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 MacFarlane
2014-04-30RST reader: Some fixes to last change, and use "author" not "authors".John MacFarlane
(in metadata)
2014-04-30ConTeXt writer: Improved autolinks.John MacFarlane
Closes #1270.
2014-04-29Added Cite to Arbitrary instance.John MacFarlane
See #1269. This reveals some test failures.
2014-04-29ADded SmallCaps to Arbitrary instance.John MacFarlane
2014-04-26Update latex reader test for change in latex reader.John MacFarlane
We use 'author' for metadata, not 'authors'.
2014-04-25Merge pull request #1265 from tarleb/org-linksJohn MacFarlane
Improvements handling of internal links
2014-04-25Org reader: Enable internal linksAlbert Krewinkel
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 MacFarlane
Previously we used 0-width spaces, an ugly hack. Closes #980.
2014-04-24Org reader: Recognize plain and angle linksAlbert Krewinkel
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 Krewinkel
Use `Text.Pandoc.Shared.compactify'DL` to allow for compact definition lists.
2014-04-19Org reader: Fix parsing of footnotesAlbert Krewinkel
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 Krewinkel
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 Krewinkel
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 Krewinkel
Loose lists (i.e. lists with blankline separated items), were parsed as multiple lists, each containing a single item. This patch fixes this issue.