summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
Commit message (Collapse)AuthorAge
* Add haddock module description to FB2 writerAlbert Krewinkel2017-05-13
| | | | Copyright, maintainer etc. were missing in haddock docs for this module.
* Change maintainer line in Org writer moduleAlbert Krewinkel2017-05-13
|
* Markdown writer: missing \n (#3647)David A Roberts2017-05-07
|
* Muse writer: Indent tables with one space (#3649)Alexander Krotov2017-05-07
| | | It is required to trigger Muse table rendering.
* Muse writer: omit automatic header identifiers (#3633)Alexander Krotov2017-05-04
|
* Markdown writer: better escaping for links (#3628)David A Roberts2017-05-03
| | | | | | | Previously the Markdown writer would sometimes create links where there were none in the source. This is now avoided by selectively escaping bracket characters when they occur in a place where a link might be created. Closes #3619.
* Markdown Writer: put space before reference link definitionsMauro Bieg2017-05-03
| | | | | | | Fixes #3630 (#3631). Previously the attributes in link reference definitions did not have a space preceding.
* Added PandocResourceNotFound error.John MacFarlane2017-05-02
| | | | | | | Use this instead of PandocIOError when a resource is not found in path. This improves the error message in this case, see #3629.
* Markdown writer: Case-insensitive reference links. (#3616)David A Roberts2017-05-02
| | | | | | | | | Ensure that we do not generate reference links whose labels differ only by case. Also allow implicit reference links when the link text and label are identical up to case. Closes #3615.
* FB2 writer: Add support for "lang" metadata (#3625)Alexander Krotov2017-05-02
|
* LaTeX writer: Fix problem with escaping in lstinline.John MacFarlane2017-04-29
| | | | | | | | | | | | | | | | | | Previously the LaTeX writer created invalid LaTeX when `--listings` was specified and a code span occured inside emphasis or another construction. This is because the characters `%{}\` must be escaped in lstinline when the listinline occurs in another command, otherwise they must not be escaped. To deal with this, adoping Michael Kofler's suggestion, we always wrap lstinline in a dummy command `\passthrough`, now defined in the default template if `--listings` is specified. This way we can consistently escape the special characters. Closes #1629.
* LaTeX writer: don't use lstinline it \item[..].John MacFarlane2017-04-28
| | | | | | | If you do, the contents of item disappear or are misplaced. Use `\texttt` instead. Closes #645.
* Ms writer: make use of already defined render' (#3613)Alexander Krotov2017-04-28
|
* Muse writer: Do not reflow directives (#3614)Alexander Krotov2017-04-28
| | | | Directives at the beginning of documents cannot span multiple lines so they must not be reflown.
* HTML line block: Use class instead of style attribute.John MacFarlane2017-04-25
| | | | | | | | | We now issue `<div class="line-block">` and include a default definition for `line-block` in the default templates, instead of hard-coding a `style` on the div. Closes #1623.
* LaTeX writer: fix error with line breaks after empty content.John MacFarlane2017-04-25
| | | | | | | LaTeX requires something before a line break, so we insert a `~` if no printable content has yet been emitted. Closes #2874.
* Avoid repeating StackValue instances definitionsAlbert Krewinkel2017-04-14
| | | | | | The lua filters and custom lua writer system defined very similar StackValue instances for strings and tuples. These instance definitions are extracted to a separate module to enable sharing.
* Extract lua helper functions into Lua.Util moduleAlbert Krewinkel2017-04-14
|
* Man writer: Fix handling of nested font commands.John MacFarlane2017-04-12
| | | | | | | Previously pandoc emitted incorrect markup for bold + italic, for example, or bold + code. Closes #3568.
* Docx writer: don't take "distArchive" from datadir.John MacFarlane2017-04-10
| | | | | | | | | | | | | | | | | The docx writer takes components from the distribution's version of reference.docx when it can't find them in a user's custom reference.docx. (This sometimes happens because Word will sometimes omit components needed for larger documents when saving a simple one.) Previously, we allowed a reference.docx in the data directory (e.g. `~/.pandoc`) to be used as the distribution's reference.docx. This led to a bizarre situation where pandoc would produce a good docx using `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to `~/.pandoc/reference.docx`, it would then produce a corrupted docx. Closes #3322 (I think).
* Ms writer: wider indents for lists.John MacFarlane2017-04-06
| | | | | Previously some indents weren't wide enough, leading the list item to start on a line after the marker.
* Ms writer: respect text wrapping options.John MacFarlane2017-04-05
|
* Ms writer improvements:John MacFarlane2017-04-04
| | | | | - added some variables to the default template. - cleaner output for images (stringify alt text).
* Ms writer: ensure that @ is escaped in URIs.John MacFarlane2017-04-04
| | | | | Otherwise we may get unescaped @s that give eqn fits, with @ as the delimiter character.
* Add original classes to JS obfuscated links (#3554)Timm Albers2017-04-04
| | | | | | | HTML links containing classes originally now preserve them when using javascript email obfuscation. Fixes #2989
* Add class to footnote back referencesTimm Albers2017-04-03
| | | | | The HTML writer now also adds the class footnoteBack to back references of footnotes. This allows for easier CSS styling.
* Include \VerbatimFootnotes for highlighted code blocksTimm Albers2017-04-03
| | | | | | Updated the LaTeX writer to also include \VerbatimFootnotes in the preamble for highlighted code blocks. Previously this was only done for raw code blocks.
* Ms writer: added syntax highlighting.John MacFarlane2017-04-01
| | | | | | | | | | Closes #3547. Macro definitions are inserted in the template when there is highlighted code. Limitations: background colors and underline currently not supported.
* OpenDocument writer: wider labels for lists.John MacFarlane2017-04-01
| | | | | | | | | | | | This avoids overly narrow labels for ordered lists with () delimiters. However, arguably it creates overly wide labels for bullets. Also, lists now start flush with the margin, rather than indented. Fixes #2421.
* JATS writer: put references in `<back>`.John MacFarlane2017-03-31
| | | | | | | Modified template to include a `<back>` and `<body>` section. This should give authors more flexibility, e.g. to put acknowledgements metadata in `<back>`. References are automatically extracted and put into `<back>`.
* Fix compiler warning.John MacFarlane2017-03-30
|
* Allow dynamic loading of syntax definitions.John MacFarlane2017-03-30
| | | | | | | | | | | | | | | | | See #3334. * Add writerSyntaxMap to WriterOptions. * Highlighting: added parameter for SyntaxMap to highlight. * Implemented --syntax-definition option. TODO: [ ] Figure out whether we want to have the xml parsing depend on the dtd (it currently does, and fails unless the language.dtd is found in the same directory). [ ] Add an option to read a KDE syntax highlighting theme as a custom style. [ ] Add tests.
* ZimWiki writer: put in PandocMonad, added warnings for raw.John MacFarlane2017-03-30
|
* Textile writer: moved into PandocMonad.John MacFarlane2017-03-30
| | | | Warnings for omitted raw content.
* Org writer: move everything into PandocMonad.John MacFarlane2017-03-30
|
* JATS writer: use both tex and mml alternatives for math when possible.John MacFarlane2017-03-30
|
* JATS writer: Fixed bibliography handling.John MacFarlane2017-03-30
|
* Merge branch 'jats'John MacFarlane2017-03-30
|\
| * Added JATS writer.John MacFarlane2017-03-30
| | | | | | | | | | | | | | * New module Text.Pandoc.Writer.JATS exporting writeJATS. * New output format `jats`. * Added tests. * Revised manual.
* | Custom writer: remove old preprocesesor conditionalsAlbert Krewinkel2017-03-28
|/ | | | | The minimum required hslua version is 0.4.0, the conditionals inserted to support hslua-0.3.* can hence be removed.
* MediaWiki writer: don't softbreak lines inside list items.John MacFarlane2017-03-26
| | | | Closes #3531.
* Ms writer: update TODO comments.John MacFarlane2017-03-26
|
* Ms writer: Hyperlink table of contents and other improvements.John MacFarlane2017-03-26
|
* Ms writer: Add PDF outline bookmarks.John MacFarlane2017-03-26
|
* Ms writer: Use @ instead of | for inline math delimiter.John MacFarlane2017-03-26
| | | | | The `|` delimiter had a bad interaction with tbl. See discussion in #1839.
* Ms writre: Added some escapes.John MacFarlane2017-03-26
|
* Removed unused imports.John MacFarlane2017-03-26
|
* Ms writer: Support external links.John MacFarlane2017-03-26
| | | | Also add config options for link color.
* Ms writer: better placement of header anchors.John MacFarlane2017-03-26
|
* Ms writer: more spacing fixes for internal links.John MacFarlane2017-03-26
|