summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
Commit message (Collapse)AuthorAge
* RST writer: ensure that `\ ` is inserted when needed...John MacFarlane2015-08-13
| | | | | ...before Cite and Span elements that begin with a "complex" element. Closes jgm/pandoc-citeproc#157.
* RST writer: Don't insert `\ ` when complex expression in matched pairs.John MacFarlane2015-08-12
| | | | E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
* Docx writer: Moved invalid character stripping to `formattedString`.John MacFarlane2015-08-10
| | | | | | | | This avoids an inefficient generic traversal. Updates f3aa03e. Closes #2356.
* DZSlides: Add `role="note"` for speaker notes.John MacFarlane2015-07-21
| | | | Closes #1693.
* Removed unneeded import.John MacFarlane2015-07-16
|
* LaTeX writer: Fixed detection of 'chapters' from template.John MacFarlane2015-07-16
| | | | | | | If a documentclass isn't specified in metadata, but the template has a hardwired bookish documentclass, act as if `--chapters` was used. This was the default in earlier versions, but it has been broken for a little while.
* Updated to use cmark >= 0.4.John MacFarlane2015-07-14
|
* HTML writer: support speaker notes in dzslides.John MacFarlane2015-07-13
| | | | | | | | With this change `<div class="notes">` and also `<div class="notes" role="note">` will be output if `-t dzslides` is used. So we can have speaker notes in dzslides too. Thanks to maybegeek.
* DokuWiki: write $..$ instead of <math>..</math>Tiziano Müller2015-07-13
| | | | | MathJax seems currently to be the only maintained math rendering extension for DokuWiki and it uses $..$ instead of <math>..</math>.
* Correct superscript/subscript.Andrew Dunning2015-07-08
|
* Fixed email javascript obfuscation with mailto: URLs.John MacFarlane2015-07-07
| | | | | | | | | | This fixes a potential security issue. Because single quotes weren't being escaped in the link portion, a specially crafted email address could allow javascript code injection. [Jim'+alert('hi')+'OBrien](mailto:me@example.com) Closes #2280.
* ConTeXt: use `\goto` for internal links.John MacFarlane2015-07-01
|
* Merge pull request #2255 from mchladek/odt_linebreakJohn MacFarlane2015-07-01
|\ | | | | Fix #2254 : OpenDocument writer adds space with hard line break
| * Do not add a carriage return after a hard line break in OpenDocument writer ↵Michael Chladek2015-07-01
| | | | | | | | and reflect change in tests.
* | ConTeXt writer: Added a % at end for `\reference` to avoid spurious space.John MacFarlane2015-07-01
|/
* Removed unneeded import.John MacFarlane2015-06-28
|
* Make sure we use dist version of reference.docx for some things.John MacFarlane2015-06-28
| | | | | | | Taking some values from a user-supplied reference.docx tends to lead to corruption. This fixes a regression from the last release. Closes #2249.
* Let reference.docx/odt behave as if they are virtual data files.John MacFarlane2015-06-28
| | | | | | | | | | | | | | | Now they are constructed on the fly from their components, but we now allow them to be printed with `--print-default-data-file` and to override the defaults if placed in the user data directory. Shared now exports getDefaultReferenceDocx and getDefaultReferenceODT (API change). These functions have been removed from the Docx and ODT writers. Shared.readDataFile has been modified so that requests to read a reference.odt or reference.docx will use these functions to generate the files.
* Removed unused import.John MacFarlane2015-06-27
|
* Textile writer: escape `+` and `-` as entities.John MacFarlane2015-06-27
| | | | Closes #2225.
* Plain writer: don't use symbols for super/subscript.John MacFarlane2015-06-27
| | | | | | Simplified code by using plainExtensions from Options. Closes #2237.
* Fix InDesign crash with URLs containing more than one colon charactergohai2015-06-09
| | | | Colons are valid characters in URLs, and used e.g. by the Internet Archive's Wayback Machine - a popular resource amongst researchers. When InDesign encounters a HyperlinkURLDestination with more than one colon character in it, it crashes when placing the ICML. (This was tested against CS6.) The IDML specification hints at this requirement in section 6.4.1: "The colon apppears in the Name attribute of the style, but is encoded as %3a when it appears in the Self attribute". Follow this example for all colon characters in URLs.
* DokuWiki writer: Use proper `<code>` tags for code blocks.John MacFarlane2015-06-07
| | | | Closes #2213.
* Custom writer: fixed some compiler warnings for ghc < 7.10.John MacFarlane2015-05-31
|
* Allow building with hslua 0.4.John MacFarlane2015-05-31
|
* Better fix for #2187.John MacFarlane2015-05-28
| | | | | | | | | | | | | | | | | | | | | | * Reverted kludgy change to make-windows-installer.bat. * Removed make-reference-fiels.hs. * Moved the individual ingredients of reference.docx and reference.odt to the data directory. * Removed reference.docx and reference.odt from data directory. * We now build the reference archives from their ingredient pieces in the docx and odt writers, instead of having a reference.docx or reference.odt intermediary. This should fix #2187. It also simplifies the bulid procedure. The one thing users may notice is different is that you can no longer get the reference.docx or reference.odt using `--print-default-data-file`. Instead, simply generate a docx or odt using pandoc with a blank or minimal input, and use that (or a customized version) with `--reference-docx` or `--reference-odt`.
* ConTeXt writer: Add reference anchors to Div with ids.John MacFarlane2015-05-28
| | | | This is useful for pandoc-citeproc linked citations.
* Texinfo writer: Removed tabs from source.John MacFarlane2015-05-28
|
* LaTeX/beamer: added `setotherlanguages` in polyglossia.John MacFarlane2015-05-27
| | | | | | This uses an `otherlang` variable that takes a list of languages. As requseted in #2174.
* LaTeX writer: Make `mainlang` work when `lang` is in metadata.John MacFarlane2015-05-27
| | | | Closes #2174.
* Fixed compiler warning.John MacFarlane2015-05-27
|
* Revealjs: allow 'center' to be set to false.John MacFarlane2015-05-27
|
* EPUB writer: Improved chapter splitting and internal link rewriting.John MacFarlane2015-05-27
| | | | | | Closes #1887. Closes #2163. Closes #2162.
* Merge pull request #2141 from DigitalPublishingToolkit/icml-imagesJohn MacFarlane2015-05-26
|\ | | | | Fix image URIs in ICML output
| * Fix image URIs in ICML output (v2)gohai2015-05-11
| | | | | | | | InDesign expects LinkResourceURI to start with "file:" for local filenames, and won't render/link the image without.
* | EPUB writer: Split references into separate chapter.John MacFarlane2015-05-21
| | | | | | | | | | | | | | | | | | | | | | Previously the div-enclosed reference section produced by pandoc-citeproc would not be split into its own chapter, which caused various problems. See #2162, #2163. I'm not sure this is a complete fix. I note that the bibliography doesn't appear in nav or toc, which seems bad.
* | DocBook writer: add id to para if in Div with id element.John MacFarlane2015-05-20
| | | | | | | | | | | | | | This makes the writer work properly with linked bibliographic items with pandoc-citeproc. Closes jgm/pandoc-citeproc#132.
* | Beamer: mark slide as `[fragile]` if header has `fragile` class.John MacFarlane2015-05-13
| | | | | | | | Closes #2119.
* | EPUB writer: Properly handle image URLs without an extension.John MacFarlane2015-05-13
| | | | | | | | | | | | | | We now look at the mime type from the server and attach an appropriate extension. Closes #1855.
* | Don't use sup element for epub footnotes.John MacFarlane2015-05-11
|/ | | | | | | | | Instead, just use an a element with class `footnoteRef`. This allows more styling options, and provides better results in some readers (e.g. iBooks, where anything inside the a tag breaks popup footnotes). Closes #1995.
* Improved warnings when image size can't be determined.John MacFarlane2015-05-09
| | | | Closes #1834.
* ImageSize: make imageSize return an Either, not a Maybe.John MacFarlane2015-05-09
| | | | | This will give us better error reporting options. This is part of a fix for #1834.
* Revert "EPUB writer: stylesheet changes. Closes #2040."John MacFarlane2015-05-09
| | | | | | | | | | This reverts commit 1c2951dfd9ee72e5270cb974a06098adb9178f89. See #2040. The semantics was too squishy. `--css` takes a URL, but for EPUB we need files that we can read. I prefer keeping the old system for now, with `--epub-stylesheet`.
* EPUB writer: stylesheet changes. Closes #2040.John MacFarlane2015-05-08
| | | | | | | | | | | | * Allow `--css` to be used to specify stylesheets. * Deprecated `--epub-stylesheet` and made it a synoynym of `--css`. * If a code block with class "css" is given as contents of the `stylesheet` metadata field, use its literal code as contents of the epub stylesheet. Otherwise, treat it as a filename and read the file. * Note: `--css` and `stylesheet` in metadata are not compatible. `stylesheet` takes precedence.
* Deal with deprecation warning in Custom.John MacFarlane2015-05-05
|
* LaTeX writer: Add a `\label` in `\hyperdef` for Div, Span.John MacFarlane2015-05-02
| | | | Otherwise links don't work.
* EPUB writer: Use plain writer for metadata dc: fields.John MacFarlane2015-05-01
| | | | | | | This gives better results when we have, e.g. multiple paragraphs. Note that tags aren't allowed in these fields. Closes #2121.
* EPUB writer: Remove linear=no from cover itemref.John MacFarlane2015-04-26
| | | | Closes #1609.
* Merge pull request #2112 from lierdakil/issue2101John MacFarlane2015-04-26
|\ | | | | Custom Writer: Set foreign encoding to UTF-8
| * Custom Writer: Set foreign encoding to UTF-8Nikolay Yakimov2015-04-26
| | | | | | | | | | | | | | Closes #2101, #1634 Also factored out ByteString, since it's only used as an intermediate representation.