aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2013-07-14Fixing wrong numbered-list indentation in open document formatAlexander Kondratskiy1-19/+19
2013-07-13Updated a test whose output changed due to last commit.John MacFarlane1-4/+1
2013-07-01Markdown writer: Commas are okay in plain yaml scalars.John MacFarlane1-1/+1
It's just commas with brackets that can cause problems.
2013-07-01Markdown writer: Render yaml title block fields in alpha order.John MacFarlane1-1/+1
This makes the output predictable; previously it varied across implementations.
2013-07-01Improvements to yaml title block writer.John MacFarlane1-3/+3
2013-07-01Switched order of fields in yaml header (writer test).John MacFarlane1-2/+2
2013-07-01Revert "Markdown writer: Don't include variables in metadata."John MacFarlane1-1/+1
This reverts commit 0ec8573347d53e0cba70552a50dba697f39216b6.
2013-07-01Markdown writer: Don't include variables in metadata.John MacFarlane1-1/+1
2013-06-30Markdown writer: Support yaml title block.John MacFarlane1-4/+7
2013-06-28ConTeXt writer: Properly handle tables without captions.John MacFarlane1-4/+4
The old output only worked in MkII. This should work in MkIV as well. Closes #837.
2013-06-27Man writer: give more fine-grained control in template.John MacFarlane1-1/+1
Now the `title`, `section`, `header`, and `footer` can all be set individually in metadata. The `description` variable has been removed. Quotes have been added so that spaces are allowed in the title. If you have a title that begins COMMAND(1) footer here | header here pandoc will parse it as before into a title, section, header, and footer. But you can also specify these elements explicitly. Closes #885.
2013-06-26Stop escaping `|` in LaTeX math.John MacFarlane2-2/+2
This caused problems with array environments. Closes #891.
2013-06-25Use latest chicago-author-date.csl.John MacFarlane2-409/+445
2013-06-25Fixed 'authors' metadata parsing in reST.John MacFarlane2-7/+3
Semicolons separate different authors.
2013-06-25Some test suite fixes for new metadata.John MacFarlane15-13/+15
2013-06-24Use new flexible metadata type.John MacFarlane5-20/+37
* Depend on pandoc 1.12. * Added yaml dependency. * `Text.Pandoc.XML`: Removed `stripTags`. (API change.) * `Text.Pandoc.Shared`: Added `metaToJSON`. This will be used in writers to create a JSON object for use in the templates from the pandoc metadata. * Revised readers and writers to use the new Meta type. * `Text.Pandoc.Options`: Added `Ext_yaml_title_block`. * Markdown reader: Added support for YAML metadata block. Note that it must come at the beginning of the document. * `Text.Pandoc.Parsing.ParserState`: Replace `stateTitle`, `stateAuthors`, `stateDate` with `stateMeta`. * RST reader: Improved metadata. Treat initial field list as metadata when standalone specified. Previously ALL fields "title", "author", "date" in field lists were treated as metadata, even if not at the beginning. Use `subtitle` metadata field for subtitle. * `Text.Pandoc.Templates`: Export `renderTemplate'` that takes a string instead of a compiled template.. * OPML template: Use 'for' loop for authors. * Org template: '#+TITLE:' is inserted before the title. Previously the writer did this.
2013-06-19Added test for #882.John MacFarlane1-0/+5
2013-06-19Added a test for #833.John MacFarlane2-1/+7
2013-06-18RST reader: don't insert paragraphs where docutils doesn't.John MacFarlane1-26/+26
rst2html doesn't add `<p>` tags to list items (even when they are separated by blank lines) unless there are multiple paragraphs in the list. This commit changes the RST reader to conform more closely to what docutils does. Closes #880.
2013-06-11Textile reader: Correctly handle entities.John MacFarlane2-0/+7
2013-06-02LaTeX writer: Always create labels for sections.John MacFarlane1-31/+32
Previously the labels were only created when there were links to the section in the document. Closes #871.
2013-05-07Use latest highlighting-kate and texmath.John MacFarlane1-0/+1
Closes #849.
2013-05-07Updated tests for template changes.John MacFarlane1-5/+14
2013-04-26Updated tests for changes in LaTeX template.John MacFarlane3-3/+9
2013-04-15Updated tests to match new docbook template.John MacFarlane1-2/+2
2013-04-14Haddock reader improvements.John MacFarlane1-1/+1
- Correctly handle ghci sessions. - Fixed spacing issues. - Simplified code.
2013-04-09Man writer: use one decimal place for column widths.John MacFarlane1-3/+3
This, I hope, will fix test failures on GHC 7.6 due to (presumably) different rounding or floating point multiplication.
2013-04-09Update markdown writer tests for changes in author in titleblock.John MacFarlane1-1/+2
Authors are now put on separate lines.
2013-04-09Fixed Haddock reader bugs with list item spaces and examples.John MacFarlane1-2/+2
Closes #824.
2013-04-08Fixed haddock test output.John MacFarlane2-9/+9
- omit extra spaces in list items - correct line breaks in ghci output
2013-04-04Haddock reader: add tests.David Lazar2-1/+95
2013-03-28Modified haddock reader test stubs so they pass, for now.John MacFarlane2-2/+1
2013-03-28Added stubs for haddock reader tests.John MacFarlane3-0/+7
Modify tests/haddock-reader.haddock and tests/haddock-reader.native.
2013-03-28MediaWiki reader: Correctly handle indented preformatted textJohn MacFarlane2-0/+7
without preceding or following blank line.
2013-03-28Mediawiki: Fixed regression for `<ref>URL</ref>`.John MacFarlane2-1/+3
`<` is no longer allowed in URLs, according to the uri parser in Text.Pandoc.Parsing. Added a test case.
2013-03-20Added OPML template, tests.John MacFarlane4-92/+158
Minor fixes to OPML writer. Improved OPML reader tests.
2013-03-19Added Text.Pandoc.Readers.OPML, exporting readOPML.John MacFarlane3-0/+161
The _note attribute is supported. This is unofficial, but used e.g. in OmniOutliner and supported by multimarkdown. We treat the contents as markdown blocks under a section header. Added to documentation and tests.
2013-03-17Markdown writer: New approach for citations.John MacFarlane1-1/+1
* Reverts 1.11 change that caused citations to be rendered as markdown citations, even if `--biblio` was specified, unless `citation` extension is disabled. Now, formatted citations are always printed if `--biblio` was specified. If you want to reformat markdown keeping pandoc markdown citations intact, just don't specify `--biblio`. * Reverted now unnecessary changes to Text.Pandoc.Biblio adding the raw block to mark the bibliography, and to Text.Pandoc.Writers.Markdown to remove the bibliography if `citations` not specified. * If the content of a `Cite` inline is a `RawInline "latex"`, which means that a LaTeX citation command was parsed and `--biblio` wasn't specified, then render it as a pandoc markdown citation. This means that `pandoc -f latex -t markdown`, without `--biblio`, will convert LaTeX citation commands to pandoc markdown citations.
2013-03-17Revert "LaTeX reader: citation handling changes."John MacFarlane4-116/+4
This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.
2013-03-13Markdown reader: don't lose parentheses in URLs.John MacFarlane2-1/+15
Added tests. This fixes a regression from 1.10.x. Closes #786.
2013-03-09LaTeX reader: citation handling changes.John MacFarlane4-4/+116
Previously, a LaTeX citation would always be parsed as a Citation element, with the raw LaTeX in the [Inline] part. Now, the LaTeX citation is parsed as a Citation element only if `--biblio` was specified (i.e. only if there is a nonempty set of references in readerReferences). Otherwise it is parsed as raw LaTeX. This will make it possible to simplify some things in the markdown writer. It also makes the LaTeX reader behave more like the Markdown reader.
2013-03-07Markdown writer: Render citations as pandoc-markdown citations.John MacFarlane1-2/+2
Previously citations were rendered as citeproc-formatted citations by default. Now we render them as pandoc citations, e.g. `[@item1]`, unless the `citations` extension is disabled. If you still want formatted citations in your markdown output, use `pandoc -t markdown-citations`.
2013-03-05Hide Text.Pandoc.Highlighting.John MacFarlane1-1/+1
* Moved code for translating listings language names to highlighting-kate names and back from LaTeX reader to Highlighting. * Text.Pandoc.Highlighting no longer exposed (API change) * Text.Pandoc.Highlighting exports toListingsLang, fromListingsLang
2013-03-02Added test for pipe table with spaces around header lines.John MacFarlane1-1/+1
2013-02-27Updated tests for latex template change (microtype).John MacFarlane3-6/+6
2013-02-21Make `implicit_header_references` work with explicit header ids.John MacFarlane2-2/+5
(Markdown reader.)
2013-02-16Textile reader: Handle attributes on headers.John MacFarlane2-2/+2
Includes `[lang]`, `(class #id)`, `{color:red}` styles.
2013-02-15Allow `&` in emails (for entities).John MacFarlane2-1/+17
Added tests for entities in titles and links. Closes #723.
2013-02-14HTML writer: Support header attributes.John MacFarlane3-7/+7
Note: The attributes go on the enclosing section or div if `--section-divs` is specified. Also fixed a regression (only now noticed) in html+lhs output. Previously the bird tracks were being omitted.
2013-01-28DocBook writer: for linebreak, but newline in literallayout.John MacFarlane1-1/+2
Closes #725.