summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* Markdown writer: Support yaml title block.John MacFarlane2013-06-30
|
* Metadata changes: Variables now completely shadow metadata.John MacFarlane2013-06-29
| | | | | | | | | Previously if you set a value both in metadata and with a variable, they'd be combined into a list. Now the variable replaces the value in document metadata. If many variables with the same name are set, a list is created. Shared: metaToJSON now has an argument for a variable list.
* ConTeXt writer: Properly handle tables without captions.John MacFarlane2013-06-28
| | | | | | | The old output only worked in MkII. This should work in MkIV as well. Closes #837.
* Custom writer: Pass full metadata, not just tit/auth/date.John MacFarlane2013-06-27
|
* Writers: Use defField for defaults.John MacFarlane2013-06-27
| | | | | | | This way explicitly specified fields not overridden. Fixes a problem e.g. with specifying a documentclass via the command line using -V.
* Shared: Added `defField`.John MacFarlane2013-06-27
| | | | | `defField` is like `setField`, but does nothing if the field already has a value.
* Man writer: give more fine-grained control in template.John MacFarlane2013-06-27
| | | | | | | | | | | | | | | | | 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.
* LaTeX reader: Support alltt environment.John MacFarlane2013-06-27
| | | | Closes #892.
* Stop escaping `|` in LaTeX math.John MacFarlane2013-06-26
| | | | This caused problems with array environments. Closes #891.
* Fixed 'authors' metadata parsing in reST.John MacFarlane2013-06-25
| | | | Semicolons separate different authors.
* Fixed regression with RTF table of contents.John MacFarlane2013-06-25
|
* Some test suite fixes for new metadata.John MacFarlane2013-06-25
|
* Fixed merge bugs in Shared.John MacFarlane2013-06-25
|
* Removed 'Functor' constraint.John MacFarlane2013-06-25
|
* Use new flexible metadata type.John MacFarlane2013-06-24
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Revised Text.Pandoc.Templates to accept JSON contexts.John MacFarlane2013-06-24
| | | | | | | | | | | | 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.
* Use aeson for json.John MacFarlane2013-06-24
| | | | Benchmarked: about twice as slow as json!
* Parsing: Generalized state type on readWith.John MacFarlane2013-06-24
|
* Markdown reader: Check for blank lines first in blocks.John MacFarlane2013-06-19
| | | | (And skip them. This might speed things up in some cases.)
* Properly handle blank line at beginning of input.John MacFarlane2013-06-19
| | | | Closes #882.
* Improved code readability.John MacFarlane2013-06-19
|
* Markdown reader: fixed bug in unmatched reference links.John MacFarlane2013-06-19
| | | | | | | | | | | | 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.
* RST reader: don't insert paragraphs where docutils doesn't.John MacFarlane2013-06-18
| | | | | | | | | 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.
* Markdown writer: Don't wrap attributes in fenced code blocks.John MacFarlane2013-06-11
|
* Textile reader: Correctly handle entities.John MacFarlane2013-06-11
|
* LaTeX writer: Always create labels for sections.John MacFarlane2013-06-02
| | | | | | | Previously the labels were only created when there were links to the section in the document. Closes #871.
* Add --atx-headers support to asciidoc and dont print empty identifier blocks ↵Max Rydahl Andersen2013-05-31
| | | | ([[]]) on headers
* Added CPP directives to avoid warnings.John MacFarlane2013-05-29
| | | | | For 'import Prelude hiding (catch)'. catch is no longer in Prelude starting with base 4.6.
* Shared.openURL: Properly handle data: URIs.John MacFarlane2013-05-28
|
* EPUB writer: math with `--webtex` is automatically made self-contained.John MacFarlane2013-05-22
| | | | And some code cleanup.
* EPUB writer: Download webtex images and include as data URLs.John MacFarlane2013-05-22
| | | | This allows you to use `--webtex` in creating EPUBs.
* MediaWiki reader: Ignore attributes on headers.John MacFarlane2013-05-20
|
* MediaWiki reader: Skip attributes on table rows.John MacFarlane2013-05-20
| | | | | Previously we just crashed if rows had attributes, now we ignore them.
* Markdown reader: Allow internal `+` in citation identifiers.John MacFarlane2013-05-13
| | | | Closes #856.
* LaTeX reader: Skip positional options after `\begin{figure}`.John MacFarlane2013-05-12
|
* Treat `\textsl` as emphasized text in LaTeX reader.John MacFarlane2013-05-09
| | | | Closes #850.
* Removed obsolete comment.John MacFarlane2013-05-09
|
* Less verbose output from --self-contained.John MacFarlane2013-05-04
| | | | | Now one gets "Fetching [URL]..." for each URL fetched, but not the full header.
* RTF writer: Properly handle characters above the 0000-FFFF range.John MacFarlane2013-05-02
| | | | Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
* Shared.openURL: Print diagnostic output to stderr, not stdout.John MacFarlane2013-05-01
|
* Shared.openURL: URL-escape pipe characters.John MacFarlane2013-04-28
| | | | | | | Even though these are legal, Network.URI doesn't regard them as legal in URLs. So we escape them first. Closes #535.
* PDF: On Windows, create temdir in working directory.John MacFarlane2013-04-26
| | | | | | | | 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.
* Don't convert to lowercase in email obfuscation.John MacFarlane2013-04-25
| | | | Closes #839.
* Markdown reader: Implemented `Ext_ascii_identifiers`.John MacFarlane2013-04-23
| | | | Closes #807.
* Options: Added `Ext_ascii_identifiers`.John MacFarlane2013-04-23
| | | | | | | This will force `Ext_auto_identifiers` to use ASCII only. Set as default for github markdown. Note: API change.
* Added Text.Pandoc.Asciify utility module.John MacFarlane2013-04-23
| | | | This has functions to create ascii-only versions of identifiers.
* Add slash in internal links in reveal.js.John MacFarlane2013-04-20
| | | | Closes #835.
* Shared: Fixed readDefaultDataFile so it works on Windows.John MacFarlane2013-04-20
|
* Revert "Improved previous patch so it really solves the Windows issue."John MacFarlane2013-04-20
| | | | This reverts commit e80116c813ecfc8cde094cddd36a3b083c108fd8.
* Improved previous patch so it really solves the Windows issue.John MacFarlane2013-04-19
|