summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
Commit message (Collapse)AuthorAge
* 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
|
* Ms writer: improved internal links.John MacFarlane2017-03-26
|
* Ms writer: added TODO comment.John MacFarlane2017-03-25
|
* Ms writer: Implement header identifiers and internal links.John MacFarlane2017-03-25
|
* Ms writer: revise TODO comments.John MacFarlane2017-03-25
|
* Ms writer: use light gray for strikeout.John MacFarlane2017-03-25
| | | | | Pending groff definitions for striking out an arbitrary section of text (not just a few words).
* Ms writer: improved pdf metadata.John MacFarlane2017-03-25
|
* Ms. writer: links: use footnote only for absolute URIs.John MacFarlane2017-03-25
|
* Ms writer: Got figures with ps and eps images working.John MacFarlane2017-03-25
|
* Ms writer: Use indented paragraphs after first in section.John MacFarlane2017-03-24
| | | | | Note that the current indentation setting is 0; see the settings in the template.
* Ensure compatibility with hslua 0.5.*Albert Krewinkel2017-03-24
| | | | | | The 0.5.0 release of hslua fixes problems with lua C modules on linux. The signature of the `loadstring` function changed, so a compatibility wrapper is introduced to allow both 0.4.* and 0.5.* versions to be used.
* Ms writer: support --toc, date, abstract.John MacFarlane2017-03-24
|
* Markdown writer: don't emit a simple table if `simple_tables` disabled.John MacFarlane2017-03-24
| | | | Closes #3529.
* Ms writer: changed some names and comments, man -> ms.John MacFarlane2017-03-24
|
* Ms writer: fixed rawblock/inline to accept "ms" format.John MacFarlane2017-03-24
|
* Recognize .roff extension as ms format.John MacFarlane2017-03-24
|