summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* Org reader: support Pandocs citation extensionAlbert Krewinkel2014-05-14
| | | | | | | | | | | | | | | 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.
* Org reader: Fix block parameter reader, relax constraintsAlbert Krewinkel2014-05-10
| | | | | | | | | 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.
* Org reader: Fix parsing of blank lines within blocksAlbert Krewinkel2014-05-09
| | | | | Blank lines were parsed as two newlines instead of just one. Thanks to Xiao Hanyu (@xiaohanyu) for pointing this out.
* Org reader: Support arguments for code blocksAlbert Krewinkel2014-05-09
| | | | | | | | | | 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.
* Updated tests for template changes.John MacFarlane2014-05-06
|
* Org reader: Read inline code blocksAlbert Krewinkel2014-05-06
| | | | | | | | | | | 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.
* Added test for #1154.John MacFarlane2014-05-04
|
* Added Tests.Writer.AsciiDoc to repository.John MacFarlane2014-05-03
|
* AsciiDoc writer: Added test for empty table cells.John MacFarlane2014-05-03
|
* DocBook writer: Small tweaks to last commit.John MacFarlane2014-05-03
| | | | | | | | * Use isTightList from Shared. * Adjust writer test, since isTightList is a bit different from what was used before. Closes #1250.
* Distinguish tight and loose lists in Docbook outputNeil Mayhew2014-05-03
| | | | Determined by the first block of the first item being Plain.
* Fixed empty reference links. Closes #1186.John MacFarlane2014-05-02
| | | | Includes test.
* Markdown reader: Make one-column pipe tables work.John MacFarlane2014-05-01
| | | | Closes #1218.
* Merge pull request #1272 from tarleb/link-typesJohn MacFarlane2014-05-01
|\ | | | | Org reader: add support for custom link types
| * Org reader: Add support for custom link typesAlbert Krewinkel2014-05-01
| | | | | | | | | | | | | | | | | | | | | | 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]].
* | Updated tests for new LaTeX template.John MacFarlane2014-04-30
| |
* | RST reader: Some fixes to last change, and use "author" not "authors".John MacFarlane2014-04-30
| | | | | | | | (in metadata)
* | ConTeXt writer: Improved autolinks.John MacFarlane2014-04-30
| | | | | | | | Closes #1270.
* | Added Cite to Arbitrary instance.John MacFarlane2014-04-29
| | | | | | | | See #1269. This reveals some test failures.
* | ADded SmallCaps to Arbitrary instance.John MacFarlane2014-04-29
|/
* Update latex reader test for change in latex reader.John MacFarlane2014-04-26
| | | | We use 'author' for metadata, not 'authors'.
* Merge pull request #1265 from tarleb/org-linksJohn MacFarlane2014-04-25
|\ | | | | Improvements handling of internal links
| * Org reader: Enable internal linksAlbert Krewinkel2014-04-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.
| * Org reader: Recognize plain and angle linksAlbert Krewinkel2014-04-24
| | | | | | | | | | This adds support for plain links (like http://zeitlens.com) and angle links (like <http://moltkeplatz.de>).
* | Markdown writer: Use proper escapes to avoid unwanted lists.John MacFarlane2014-04-24
|/ | | | | | Previously we used 0-width spaces, an ugly hack. Closes #980.
* Org reader: Allow for compact definition listsAlbert Krewinkel2014-04-19
| | | | | Use `Text.Pandoc.Shared.compactify'DL` to allow for compact definition lists.
* Org reader: Fix parsing of footnotesAlbert Krewinkel2014-04-19
| | | | | | 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.
* Org reader: Apply captions to code blocks and tablesAlbert Krewinkel2014-04-19
| | | | | The `Table` blocktype already takes the caption as an argument, while code blocks are wrapped in a `Div` block together with a labelling `Span`.
* Org reader: Add support for plain LaTeX fragmentsAlbert Krewinkel2014-04-18
| | | | | | | | | | This adds support for LaTeX fragments like the following: ``` \begin{equation} \int fg \mathrm{d}x \end{equation} ```
* Org reader: Fix parsing of loose listsAlbert Krewinkel2014-04-18
| | | | | | Loose lists (i.e. lists with blankline separated items), were parsed as multiple lists, each containing a single item. This patch fixes this issue.
* Org reader: Support more types of '#+BEGIN_<type>' blocksAlbert Krewinkel2014-04-17
| | | | | | Support for standard org-blocks is improved. The parser now handles "HTML", "LATEX", "ASCII", "EXAMPLE", "QUOTE" and "VERSE" blocks in a sensible fashion.
* Org reader: Support footnotesAlbert Krewinkel2014-04-17
|
* Merge pull request #1240 from neilmayhew/masterJohn MacFarlane2014-04-13
|\ | | | | Docbook output of Line Blocks
| * Add some unit tests for Writers.DocbookNeil Mayhew2014-04-12
| | | | | | | | | | | | | | | | 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.
| * Improve handling of hard line breaks in Docbook writerNeil Mayhew2014-04-12
| | | | | | | | | | | | | | * Use a <literallayout> for the entire paragraph, not just for the newline character * Don't let LineBreaks inside footnotes influence the enclosing paragraph
* | Merge pull request #1239 from tarleb/org-linebreakJohn MacFarlane2014-04-13
|\ \ | | | | | | Org linebreaks
| * | Org reader: Read linebreaksAlbert Krewinkel2014-04-12
| | | | | | | | | | | | Linebreaks are marked by the string `\\` at the end of a line.
| * | Org writer: Fix output for linebreaksAlbert Krewinkel2014-04-12
| |/ | | | | | | | | 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.
* / Org reader: Add support for figuresAlbert Krewinkel2014-04-12
|/ | | | Support for figures (images with name and caption) is added.
* Org reader: Fix parsing of sub-/superscript expressionsAlbert Krewinkel2014-04-11
| | | | | | | 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.
* Org reader: Support more inline/display math variantsAlbert Krewinkel2014-04-10
| | | | | | | | | | | | Support all of the following variants as valid ways to define inline or display math inlines: - `\[..\]` (display) - `$$..$$` (display) - `\(..\)` (inline) - `$..$` (inline) This closes #1223. Again.
* Org reader: Precise rules for the recognition of markupAlbert Krewinkel2014-04-09
| | | | | | 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.
* Org reader: Support inline math (like $E=mc^2$)Albert Krewinkel2014-04-07
| | | | Closes #1223.
* Org reader: Add support for definition listsAlbert Krewinkel2014-04-06
|
* Textile reader: Better support for attributes.John MacFarlane2014-04-05
| | | | | | | | | | 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.
* Textile reader: Improved treatment of HTML spans (%).John MacFarlane2014-04-05
| | | | Closes #1115.
* Merge pull request #1219 from tarleb/org-imagesJohn MacFarlane2014-04-05
|\ | | | | Org-reader: support inline images, clean-up code, fix bugs
| * Org reader: Support inline imagesAlbert Krewinkel2014-04-05
| |
| * Org reader: Fix parsing of nested inlinesAlbert Krewinkel2014-04-05
| | | | | | | | | | | | | | | | 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.
* | DocBook reader/writer tests: use "authorgroup".John MacFarlane2014-04-04
|/