Age | Commit message (Collapse) | Author | Files | Lines |
|
Previously setting writerStandalone = True did nothing unless
a template was provided in writerTemplate. Now a fragment
will be generated if writerTemplate is Nothing; otherwise,
the specified template will be used and standalone output
generated. [API change]
|
|
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
|
|
This is needed for ghci to work with pandoc, given that we
now use a custom prelude.
Closes #2503.
|
|
* 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.
|
|
|
|
|
|
|
|
Taking into account new context/latex output, and fixing
some bugs in the test suite Tests.Helpers and Tests.Writers.ConTeXt.
(We had the wrong order of expected/actual in the diff output.)
|
|
|
|
Also removeLeadingSpace to triml,
removeTrailingSpace to trimr.
|
|
|
|
|
|
|
|
We now use a CPP trick to have compatible quasiquotes that
work in both GHC 6.12 and 7.
|
|
ConTeXt writer bullet list test set to break as an example.
|
|
This allows you to take expected test output from a file.
|
|
|
|
Now there is a uniform interface for reader and writer tests.
Also added a quasiquoter, for multiline strings.
|
|
|
|
|
|
|
|
|
|
Left in a couple failing tests for demonstration purposes.
|
|
|
|
|
|
Tests.Shared would be the natural place to put tests for functions
in Text.Pandoc.Shared.
|