aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2015-10-01Set the template variable $hyphenate$ to true by defaultAlex Vong1-0/+1
* src/Text/Pandoc/Writers/Man.hs: Set $hyphenate$ to be true.
2015-09-26Merge pull request #2419 from mb21/bidiJohn MacFarlane2-13/+40
Support bidirectional text output with XeLaTeX, ConTeXt and HTML
2015-09-26Support bidirectional text output with XeLaTeX, ConTeXt and HTMLmb212-13/+40
closes #2191
2015-09-26Removed unneeded import.John MacFarlane1-1/+0
2015-09-25Correctly recognize book documentclass in metadata.John MacFarlane1-1/+1
Closes #2395.
2015-09-22Merge pull request #2369 from mb21/language-variablesJohn MacFarlane2-12/+176
`lang` variable is now in BCP47 format
2015-09-19[RST Writer] Don't normalize heading levels below input minimumNikolay Yakimov1-1/+7
2015-09-17Markdown writer: in TOC, add links to headers.John MacFarlane1-2/+5
Closes #829.
2015-09-09Use user data directory for reference docx archive.John MacFarlane1-1/+1
This allows the test suite to work without installing pandoc first. It also brings the docx writer in line with the odt writer.
2015-08-20`lang` variable is now in BCP47 formatmb212-12/+176
strings are converted for LaTeX and ConTeXt output, closes #1614
2015-08-13RST writer: ensure that `\ ` is inserted when needed...John MacFarlane1-0/+2
...before Cite and Span elements that begin with a "complex" element. Closes jgm/pandoc-citeproc#157.
2015-08-12RST writer: Don't insert `\ ` when complex expression in matched pairs.John MacFarlane1-3/+4
E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
2015-08-10Docx writer: Moved invalid character stripping to `formattedString`.John MacFarlane1-4/+4
This avoids an inefficient generic traversal. Updates f3aa03e. Closes #2356.
2015-08-07Updated readers, writers and README for link attributemb2122-89/+100
2015-08-07Updated readers and writers for new image attribute parameter.John MacFarlane22-122/+310
(mb21)
2015-08-05ICML writer: changed type of `writeICML`.John MacFarlane1-39/+50
API change: It is now `WriterOptions -> Pandoc -> IO String`. Also handle new image attributes. (mb21)
2015-08-05ICML writer: Add Cite style to citations.John MacFarlane1-1/+3
(mb21)
2015-07-21DZSlides: Add `role="note"` for speaker notes.John MacFarlane1-1/+2
Closes #1693.
2015-07-16Removed unneeded import.John MacFarlane1-2/+1
2015-07-16LaTeX writer: Fixed detection of 'chapters' from template.John MacFarlane1-3/+11
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.
2015-07-14Updated to use cmark >= 0.4.John MacFarlane1-4/+4
2015-07-13HTML writer: support speaker notes in dzslides.John MacFarlane1-0/+1
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.
2015-07-13DokuWiki: write $..$ instead of <math>..</math>Tiziano Müller1-1/+1
MathJax seems currently to be the only maintained math rendering extension for DokuWiki and it uses $..$ instead of <math>..</math>.
2015-07-08Correct superscript/subscript.Andrew Dunning1-3/+3
2015-07-07Fixed email javascript obfuscation with mailto: URLs.John MacFarlane1-2/+2
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.
2015-07-01ConTeXt: use `\goto` for internal links.John MacFarlane1-7/+2
2015-07-01Merge pull request #2255 from mchladek/odt_linebreakJohn MacFarlane1-1/+1
Fix #2254 : OpenDocument writer adds space with hard line break
2015-07-01ConTeXt writer: Added a % at end for `\reference` to avoid spurious space.John MacFarlane1-2/+2
2015-07-01Do not add a carriage return after a hard line break in OpenDocument writer ↵Michael Chladek1-1/+1
and reflect change in tests.
2015-06-28Removed unneeded import.John MacFarlane1-1/+1
2015-06-28Make sure we use dist version of reference.docx for some things.John MacFarlane1-2/+2
Taking some values from a user-supplied reference.docx tends to lead to corruption. This fixes a regression from the last release. Closes #2249.
2015-06-28Let reference.docx/odt behave as if they are virtual data files.John MacFarlane2-43/+2
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.
2015-06-27Removed unused import.John MacFarlane1-1/+0
2015-06-27Textile writer: escape `+` and `-` as entities.John MacFarlane1-0/+2
Closes #2225.
2015-06-27Plain writer: don't use symbols for super/subscript.John MacFarlane1-14/+10
Simplified code by using plainExtensions from Options. Closes #2237.
2015-06-09Fix InDesign crash with URLs containing more than one colon charactergohai1-2/+9
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.
2015-06-07DokuWiki writer: Use proper `<code>` tags for code blocks.John MacFarlane1-4/+4
Closes #2213.
2015-05-31Custom writer: fixed some compiler warnings for ghc < 7.10.John MacFarlane1-12/+17
2015-05-31Allow building with hslua 0.4.John MacFarlane1-0/+20
2015-05-28Better fix for #2187.John MacFarlane2-15/+57
* 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`.
2015-05-28ConTeXt writer: Add reference anchors to Div with ids.John MacFarlane1-1/+7
This is useful for pandoc-citeproc linked citations.
2015-05-28Texinfo writer: Removed tabs from source.John MacFarlane1-3/+3
2015-05-27LaTeX/beamer: added `setotherlanguages` in polyglossia.John MacFarlane1-3/+7
This uses an `otherlang` variable that takes a list of languages. As requseted in #2174.
2015-05-27LaTeX writer: Make `mainlang` work when `lang` is in metadata.John MacFarlane1-2/+3
Closes #2174.
2015-05-27Fixed compiler warning.John MacFarlane1-1/+1
2015-05-27Revealjs: allow 'center' to be set to false.John MacFarlane1-0/+3
2015-05-27EPUB writer: Improved chapter splitting and internal link rewriting.John MacFarlane1-53/+34
Closes #1887. Closes #2163. Closes #2162.
2015-05-26Merge pull request #2141 from DigitalPublishingToolkit/icml-imagesJohn MacFarlane1-1/+3
Fix image URIs in ICML output
2015-05-21EPUB writer: Split references into separate chapter.John MacFarlane1-0/+4
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.
2015-05-20DocBook writer: add id to para if in Div with id element.John MacFarlane1-0/+8
This makes the writer work properly with linked bibliographic items with pandoc-citeproc. Closes jgm/pandoc-citeproc#132.