summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
Commit message (Collapse)AuthorAge
* Merge branch 'altcite'John MacFarlane2013-08-20
|\
| * Create Cite element even if no matching reference in the biblio.John MacFarlane2013-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Scale LaTeX tables so they don't exceed columnwidth.John MacFarlane2013-08-19
|/
* Adjusted writers and tests for change in parsing of div/span.John MacFarlane2013-08-18
| | | | | Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs. Otherwise Div and Span are "transparent" block containers.
* LaTeX writer: Avoid problem with footnotes in unnumbered headers.John MacFarlane2013-08-16
| | | | | Closes #940. Added test case.
* Updated for removed unMeta, unFormat in pandoc-types.John MacFarlane2013-08-14
|
* ODT/OpenDocument writer: Minor changes for ODF 1.2 conformance.John MacFarlane2013-08-11
| | | | | See #939. We leave the nonconforming contextual-spacing attribute, which is provided by LibreOffice itself and seems to be supported.
* Options: Changed `writerSourceDir` to `writerSourceURL` (now a Maybe).John MacFarlane2013-08-11
| | | | | | | | | | | | | | | | | | | | | | | Previously we used to store the directory of the first input file, even if it was local, and used this as a base directory for finding images in ODT, EPUB, Docx, and PDF. This has been confusing to many users. It seems better to look for images relative to the current working directory, even if the first file argument is in another directory. writerSourceURL is set to 'Just url' when the first command-line argument is an absolute URL. (So, relative links will be resolved in relation to the first page.) Otherwise, 'Nothing'. The ODT, EPUB, Docx, and PDF writers have been modified accordingly. Note that this change may break some existing workflows. If you have been assuming that relative links will be interpreted relative to the directory of the first file argument, you'll need to make that the current directory before running pandoc. Closes #942.
* Use walk, walkM in place of bottomUp, bottomUpM when possible.John MacFarlane2013-08-10
| | | | They are significantly faster.
* Use query instead of queryWith.John MacFarlane2013-08-10
|
* Adjustments for new Format newtype.John MacFarlane2013-08-10
|
* Preliminary support for new Div and Span elements in writers.John MacFarlane2013-08-08
| | | | | Currently these are "transparent" containers, except in HTML, where they produce div and span elements with attributes.
* Added Text.Pandoc.Compat.Monoid.John MacFarlane2013-08-08
| | | | | This allows pandoc to compile with base < 4.5, where Data.Monoid doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
* Added support for MetaBool.John MacFarlane2013-08-06
|
* Remove CPP from default-extensions; add pragmas to modules as needed.John MacFarlane2013-08-04
|
* MediaWiki writer: Use native mediawiki tables instead of HTML.John MacFarlane2013-08-03
| | | | Closes #720.
* Beamer: add allowframebreaks to slide if set in header classes.John MacFarlane2013-07-26
| | | | | | | | | | It's recommended that your bibliography slide have this attribute: # References {.allowframebreaks} This causes multiple slides to be created if necessary, depending on the length of the bibliography.
* LaTeX writer: Change `\` to `/` in paths.John MacFarlane2013-07-25
| | | | | `/` works even on Windows in LaTeX. `\` will cause major problems if unescaped.
* Fixed warning.John MacFarlane2013-07-18
|
* Improved fetching of external resources.John MacFarlane2013-07-18
| | | | | | | | | * In Shared, openURL and fetchItem now return an Either, for better error handling. (API change.) * Better error message when fetching a URL fails with `--self-contained`. * EPUB writer: If resource not found, skip it, as in Docx writer. * Closes #916.
* Text.Pandoc.ImageSize: Handle EPS.John MacFarlane2013-07-16
| | | | | Closes #903. This change will make EPS images properly sized on conversion to Word.
* Fixing wrong numbered-list indentation in open document formatAlexander Kondratskiy2013-07-14
|
* Docx writer: Make `--no-highlight` work properly.John MacFarlane2013-07-13
|
* Checking options before applying syntax highlighting for HTML outputAlexander Kondratskiy2013-07-13
|
* Docx writer: Ignore most components of reference.docx.John MacFarlane2013-07-12
| | | | | | | | | We take the word/styles.xml, docProps/app.xml, word/theme/theme1.xml, and word/fontTable.xml from reference.docx, ignoring everything else. Perhaps this will help with the corruption problems caused when different versions of Word resave the reference.docx and reorganize things.
* Docx writer: Use w:br with w:type 'textWrapping' for linebreaks.John MacFarlane2013-07-04
| | | | | | | Previously we used w:cr. I don't see a difference between these in my version of Word, but apparently some do. Closes #873.
* LaTeX writer: Don't use ligatures in escaping inline code.John MacFarlane2013-07-04
|
* Rename `Ext_yaml_title_block` -> `Ext_yaml_metadata_block`.John MacFarlane2013-07-02
|
* Markdown writer: Changed condition for rendering title block.John MacFarlane2013-07-02
| | | | | Previously it was only rendered if title, author, or date set. Now any metadata field can be set.
* Write full metadata in MMD style title blocks.John MacFarlane2013-07-02
|
* Markdown writer: Commas are okay in plain yaml scalars.John MacFarlane2013-07-01
| | | | It's just commas with brackets that can cause problems.
* Markdown writer: Render yaml title block fields in alpha order.John MacFarlane2013-07-01
| | | | | This makes the output predictable; previously it varied across implementations.
* Added Text.Pandoc.Writers.Shared to repository.John MacFarlane2013-07-01
| | | | This should have been in last commit.
* Created Text.Pandoc.Writers.Shared, improved metaToJSON.John MacFarlane2013-07-01
| | | | | | | * Text.Pandoc.Writers.Shared contains shared functions used only in writers. * metaToJSON now takes a WriterOptions parameter, and will return an empty object if standalone is not specified.
* Improvements to yaml title block writer.John MacFarlane2013-07-01
|
* Revert "Markdown writer: Don't include variables in metadata."John MacFarlane2013-07-01
| | | | This reverts commit 0ec8573347d53e0cba70552a50dba697f39216b6.
* Markdown writer: Don't include variables in metadata.John MacFarlane2013-07-01
|
* 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.
* 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.