summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
Commit message (Collapse)AuthorAge
* 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.
* Stop escaping `|` in LaTeX math.John MacFarlane2013-06-26
| | | | This caused problems with array environments. Closes #891.
* Fixed regression with RTF table of contents.John MacFarlane2013-06-25
|
* Some test suite fixes for new metadata.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.
* Markdown writer: Don't wrap attributes in fenced code blocks.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.
* 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.
* RTF writer: Properly handle characters above the 0000-FFFF range.John MacFarlane2013-05-02
| | | | Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
* Don't convert to lowercase in email obfuscation.John MacFarlane2013-04-25
| | | | Closes #839.
* Add slash in internal links in reveal.js.John MacFarlane2013-04-20
| | | | Closes #835.
* Fixed footnote numbers in LaTeX/PDF tables.John MacFarlane2013-04-15
| | | | | | | | | This fixes a bug wherein notes were numbered incorrectly in tables. Closes #827. Now that we are using longtable, we can just use regular `\footnote` commands for notes, which simplifies the code considerably.
* Markdown/RST writers: Only autolink absolute URIs.John MacFarlane2013-04-14
| | | | | | | This fixes a regression and closes #830. $ echo '<a href="x">x</a>' | pandoc -f html -t markdown <x>
* Added `Text.Pandoc.Writers.Custom`, `--print-custom-lua-writer`.John MacFarlane2013-04-14
| | | | | | | | | | pandoc -t data/sample.lua will load the script sample.lua and use it as a custom writer. data/sample.lua is provided as an example. Added `--print-custom-lua-writer` option to print the sample script.
* Man writer: use one decimal place for column widths.John MacFarlane2013-04-09
| | | | | This, I hope, will fix test failures on GHC 7.6 due to (presumably) different rounding or floating point multiplication.
* Markdown writer: Put multiple authors on separate lines in titleblock.John MacFarlane2013-04-08
| | | | | Also, don't wrap long author entries, as new lines get treated as new authors.
* Docx writer: Use Compact style for Plain block elements.John MacFarlane2013-03-30
| | | | | This differentiates between tight and loose lists. Closes #775.
* Allow simple tables to be printed as grid tables.John MacFarlane2013-03-28
| | | | | | | | | | if other table options are disabled. This means you can do pandoc -t markdown-pipe_tables-simple_tables-multiline_tables and all tables will render as grid tables.
* Removed blaze_html_0_5 flag, require blaze-html >= 0.5.John MacFarlane2013-03-26
| | | | | | | Reason: < 0.5 does not provide a monoid instance for Attribute, which is now needed by the HTML writer. Closes #803.
* EPUB writer: Don't put blank title page in reading sequence.John MacFarlane2013-03-24
| | | | | Set linear="no" if no title block. Addresses #797.
* EPUB writer: Add `id="toc-title"` to h1 in nav.xhtml.John MacFarlane2013-03-24
| | | | Closes #799.
* Added syntax for "pauses" in beamer or reaveljs slide shows.John MacFarlane2013-03-24
| | | | | | | | This gives . . . a pause.
* Reveal.js improvements.John MacFarlane2013-03-23
| | | | | Changed name to revealjs (from reveal_js). Set revealjs-url template variable to 'reveal.js' by default.
* reveal_js: nested vertical stacks used for hierarchical structure.John MacFarlane2013-03-21
| | | | | | Variant of a patch from jamiefolson. Results for more than one level of nesting may be odd. Perhaps this needs revising.
* Support incremental slide view for definition lists.John MacFarlane2013-03-21
| | | | | All slide formats supported. Simplified some list code.
* Added basic support for reveal.js.Jamie F. Olson2013-03-21
| | | | | | | | Support unordered and ordered lists with "fragment" elements. Modified by JGM to remove the --reveal_js-url command-line option. Instead use -V reveal_js-url=... as with slidy and the other slide formats. Also cleaned up the list code in the HTML writer.
* EPUB writer: Don't add dc:creator tags if present in epub metadata.John MacFarlane2013-03-20
|
* Added OPML template, tests.John MacFarlane2013-03-20
| | | | | Minor fixes to OPML writer. Improved OPML reader tests.
* Added Text.Pandoc.Writers.OPML.John MacFarlane2013-03-19
| | | | | | | | TODO: * Document in README * Add tests * Add template (and add template to cabal file)
* Docx writer: Fixed rendering of display math in lists.John MacFarlane2013-03-18
| | | | | | | | | In 1.11 and 1.11.1, display math in lists rendered as a new list item. Now it always appears centered, just as outside of lists, and in proper display math style, no matter how far indented the containing list item is. Closes #784.
* Markdown writer: New approach for citations.John MacFarlane2013-03-17
| | | | | | | | | | | | | | | | | | | * 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.
* Markdown writer: Omit bibliography when `citations` enabled.John MacFarlane2013-03-17
| | | | | | | | | In 1.11, citations would be rendered as pandoc markdown citations, but the bibliography would still be printed. We avoid that by adding a `RawBlock "pandoc" "references"` before the references. This allows the markdown writer to find the references and strip them off when `citations` is enabled.
* Revert "LaTeX reader: citation handling changes."John MacFarlane2013-03-17
| | | | This reverts commit f7229b147314042f946dfded3b441ab0fae260a0.
* Fixed numbering mismatch between TOC and sections in HTML.John MacFarlane2013-03-16
| | | | | | | Also made `--number-offset` affect TOC numbering as well as section numbering, as it should have all along. Closes #789.
* Fixed regression in ODT writer.John MacFarlane2013-03-15
| | | | | | | This was due to a change in the Show instance for Text.Pandoc.Pretty.Doc, which led 1.11 to produce corrupt ODTs. Closes #780.
* Fixed spacing bugs involving code block attributes.John MacFarlane2013-03-11
| | | | Closes #763.
* LaTeX reader: citation handling changes.John MacFarlane2013-03-09
| | | | | | | | | | | | | | 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.
* Markdown writer: Render citations as pandoc-markdown citations.John MacFarlane2013-03-07
| | | | | | | | | 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`.
* Support :number-lines: in RST code output.John MacFarlane2013-03-06
|
* Hide Text.Pandoc.Highlighting.John MacFarlane2013-03-05
| | | | | | | * 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
* LaTeX writer: Support line numbering with `--listings`.John MacFarlane2013-03-04
| | | | | | | If "numberLines" class is present, we add "numbers=left"; if "startFrom" is present, we add "firstnumber=". Partially addresses #763.
* EPUB writer: Include html TOC even in epub2.John MacFarlane2013-03-03
| | | | | | | | | | | * The TOC is included in `<spine>`, but `linear` is set to `no` unless the `--toc` option is specified. * Include `<guide>` element in OPF. * This should allow the TOC to be useable in Kindles when converted with kindlegen. * Results validate with epubcheck 3.0 for both epub and epub3 output. * Closes #773.
* Textile writer: Removed an unused assignment.John MacFarlane2013-03-01
|
* Markdown writer: Use grid tables when needed, and if enabled.John MacFarlane2013-02-28
| | | | Closes #740.
* Textile writer: Support header attributes.John MacFarlane2013-02-28
|
* Docx writer: Better treatment of display math.John MacFarlane2013-02-26
| | | | | | | | Display math inside a paragraph is now put in a separate paragraph, so it will render properly (centered and without extra blank lines around it). Partially addresses #742.