aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2013-09-01Use registerHeader in Textile reader.John MacFarlane1-29/+29
This produces automatic header identifiers, unless `auto_identifiers` extension is disabled. Closes #967.
2013-09-01Use registerHeader in RST and LaTeX readers.John MacFarlane8-69/+69
This will give automatic unique identifiers, unless `-auto_identifiers` is specified.
2013-08-26Added markdown citation parsing test.John MacFarlane2-0/+21
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-25Removed tests relating to citation processing.John MacFarlane7-1360/+0
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-20Merge branch 'altcite'John MacFarlane4-46/+68
2013-08-20Create Cite element even if no matching reference in the biblio.John MacFarlane4-46/+68
* 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-19Scale LaTeX tables so they don't exceed columnwidth.John MacFarlane1-32/+32
2013-08-18Adjusted writers and tests for change in parsing of div/span.John MacFarlane13-98/+167
Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs. Otherwise Div and Span are "transparent" block containers.
2013-08-16LaTeX writer: Avoid problem with footnotes in unnumbered headers.John MacFarlane1-0/+6
Closes #940. Added test case.
2013-08-16Updated tests for latest pandoc-types changes.John MacFarlane11-11/+11
2013-08-14Updated for removed unMeta, unFormat in pandoc-types.John MacFarlane12-76/+76
2013-08-11ODT/OpenDocument writer: Minor changes for ODF 1.2 conformance.John MacFarlane1-1/+1
See #939. We leave the nonconforming contextual-spacing attribute, which is provided by LibreOffice itself and seems to be supported.
2013-08-10Added Tests.Walk.John MacFarlane2-0/+49
This verifies that walk and query match the generic traversals.
2013-08-10Updated tests for new Format.John MacFarlane7-65/+65
2013-08-10Adjustments for new Format newtype.John MacFarlane1-4/+4
2013-08-03MediaWiki writer: Use native mediawiki tables instead of HTML.John MacFarlane1-191/+125
Closes #720.
2013-07-25Textile reader: Improved handling of `<pre>` blocks.John MacFarlane1-1/+1
* Closed #927 (a bug in which `<pre>` in certain contexts was not recognized as a code block). * Remove internal HTML tags in code blocks, rather than printing them verbatim. * Parse attributes on `<pre>` tag for code blocks.
2013-07-23Test suite changes for new highlighting-kate version.John MacFarlane3-3/+3
2013-07-21LaTeX reader: Don't add spurious ", " to citation suffixes.John MacFarlane2-19/+19
This is added when needed in Text.Pandoc.Biblio anyway.
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.