aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-06-24Use new flexible metadata type.John MacFarlane40-552/+678
* 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-24Revised Text.Pandoc.Templates to accept JSON contexts.John MacFarlane4-134/+240
Currently the library is set up with a shim for association lists, for compatibility, but this can change when the writers are changed. New export: `varListToJSON`. Removed `Empty`. Simplified template type to a newtype.
2013-06-24Use aeson for json.John MacFarlane3-24/+27
Benchmarked: about twice as slow as json!
2013-06-24Parsing: Generalized state type on readWith.John MacFarlane1-3/+3
2013-06-19Added test for #882.John MacFarlane1-0/+5
2013-06-19Markdown reader: Check for blank lines first in blocks.John MacFarlane1-2/+2
(And skip them. This might speed things up in some cases.)
2013-06-19Properly handle blank line at beginning of input.John MacFarlane1-1/+1
Closes #882.
2013-06-19Improved code readability.John MacFarlane1-11/+15
2013-06-19Added a test for #833.John MacFarlane2-1/+7
2013-06-19Markdown reader: fixed bug in unmatched reference links.John MacFarlane1-7/+12
The input [*infile*] [*outfile*] was getting improperly parsed: "infile" was emphasized, but "*outfile*" was literal. This was due to failure to parse the "fallback" in the reference link parser. Closes #883.
2013-06-18RST reader: don't insert paragraphs where docutils doesn't.John MacFarlane2-27/+32
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-11Markdown writer: Don't wrap attributes in fenced code blocks.John MacFarlane1-2/+2
2013-06-11Textile reader: Correctly handle entities.John MacFarlane3-1/+9
2013-06-02Latest template changes: title attribute on title section in dzslides.John MacFarlane1-5/+8
2013-06-02LaTeX writer: Always create labels for sections.John MacFarlane2-38/+41
Previously the labels were only created when there were links to the section in the document. Closes #871.
2013-05-30README: Note that `--atx-headers` affects asciidoc as well as markdown.John MacFarlane1-2/+2
2013-05-30Merge pull request #868 from maxandersen/atxasciidocJohn MacFarlane1-2/+11
Add support for --atx-headers in asciidoc and remove unnecessary [[]] generation for headers.
2013-05-31Add --atx-headers support to asciidoc and dont print empty identifier blocks ↵Max Rydahl Andersen1-2/+11
([[]]) on headers
2013-05-29Added CPP directives to avoid warnings.John MacFarlane2-0/+7
For 'import Prelude hiding (catch)'. catch is no longer in Prelude starting with base 4.6.
2013-05-29Set default stack size to 16M.John MacFarlane1-2/+2
This is needed for some large conversions, esp. if pandoc is compiled with 64-bit ghc.
2013-05-28Shared.openURL: Properly handle data: URIs.John MacFarlane1-2/+8
2013-05-22EPUB writer: math with `--webtex` is automatically made self-contained.John MacFarlane1-17/+16
And some code cleanup.
2013-05-22EPUB writer: Download webtex images and include as data URLs.John MacFarlane1-25/+32
This allows you to use `--webtex` in creating EPUBs.
2013-05-20MediaWiki reader: Ignore attributes on headers.John MacFarlane1-4/+3
2013-05-20MediaWiki reader: Skip attributes on table rows.John MacFarlane1-1/+2
Previously we just crashed if rows had attributes, now we ignore them.
2013-05-13Markdown reader: Allow internal `+` in citation identifiers.John MacFarlane1-1/+1
Closes #856.
2013-05-12LaTeX reader: Skip positional options after `\begin{figure}`.John MacFarlane1-0/+1
2013-05-09Treat `\textsl` as emphasized text in LaTeX reader.John MacFarlane1-0/+1
Closes #850.
2013-05-09Removed obsolete comment.John MacFarlane1-3/+0
2013-05-07Bump upper bound for criterion.John MacFarlane1-1/+1
2013-05-07Use latest highlighting-kate and texmath.John MacFarlane2-2/+3
Closes #849.
2013-05-07Updated tests for template changes.John MacFarlane1-5/+14
2013-05-07Made `\includegraphics` more flexible in LaTeX template.John MacFarlane1-5/+5
Now it can be used with options, if needed. Thanks to Bernhard Weichel.
2013-05-04Less verbose output from --self-contained.John MacFarlane1-1/+2
Now one gets "Fetching [URL]..." for each URL fetched, but not the full header.
2013-05-02RTF writer: Properly handle characters above the 0000-FFFF range.John MacFarlane1-2/+12
Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
2013-05-01Version bump to 1.11.2.John MacFarlane1-1/+1
2013-05-01Fixed errors in revealjs template.John MacFarlane1-5/+5
2013-05-01Shared.openURL: Print diagnostic output to stderr, not stdout.John MacFarlane1-3/+5
2013-05-01Merge pull request #841 from juhp/patch-2John MacFarlane1-1/+1
remove reference in pandoc.1 to markdown2pdf (1)
2013-05-01remove reference in pandoc.1 to markdown2pdf (1)Jens Petersen1-1/+1
2013-04-30revealjs templates: use query hashes for defaults, include remotes.John MacFarlane1-8/+5
2013-04-28Shared.openURL: URL-escape pipe characters.John MacFarlane1-3/+2
Even though these are legal, Network.URI doesn't regard them as legal in URLs. So we escape them first. Closes #535.
2013-04-26pandoc `--help` now says something about pdf output.John MacFarlane1-2/+4
Closes #720.
2013-04-26PDF: On Windows, create temdir in working directory.John MacFarlane2-2/+12
Reason: the path to the system temp directory may contain tildes, which causes problems in LaTeX when the username is more than eight characters. Closes #777.
2013-04-26Updated tests for changes in LaTeX template.John MacFarlane3-3/+9
2013-04-25LaTeX template: Changes to make mathfont work with xelatex.John MacFarlane1-5/+8
We need the mathspec library, not just fontspec, for this. We also need to set options for setmathfont. Closes #734.
2013-04-25README: Noted that `--self-contained` doesn't work with `--mathjax`.John MacFarlane1-5/+6
2013-04-25Don't convert to lowercase in email obfuscation.John MacFarlane1-6/+8
Closes #839.
2013-04-23README: Documented markdown variants (which extensions they have).John MacFarlane1-1/+28
2013-04-23README: Documented `ascii_identifiers` extensionJohn MacFarlane1-0/+5