aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2015-10-22Avoid compiler warning for unused identifier.John MacFarlane1-1/+1
2015-10-22Textile writer: support start number in ordered lists.John MacFarlane1-7/+18
e.g. `#3`. Partially addresses #2465. TBD: reader support.
2015-10-18LaTeX and ConTeXt writers: support lang attribute on divs and spansmb212-32/+110
For LaTeX, also collect lang and dir attributes on spans and divs to set the lang, otherlangs and dir variables if they aren’t set already. See #895.
2015-10-17Consider header files when determining whether to use csquotes.Andreas Lööw1-2/+7
2015-10-15Support all frame attributes in Beamer.John MacFarlane1-2/+5
2015-10-15Use unicode super/subscripts for digits in plain output.John MacFarlane1-3/+14
2015-10-14More changes to avoid compiler warnings on ghc 7.10.John MacFarlane3-8/+11
* CPP around deprecated `parseTime`. * Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time, now exports Data.Time.
2015-10-14Use custom Prelude to avoid compiler warnings.John MacFarlane13-15/+1
- The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
2015-10-13LaTeX writer: add `\protect` to `\hyperdef` in inline context.John MacFarlane1-1/+1
This way we don't get an error when this is used as a moveable argument. Closes #2136.
2015-10-13epub with `--webtex`: include image file rather than data: URI.John MacFarlane1-12/+8
Closes #2363.
2015-10-12RST writer: do header normalization only in "standalone" mode.John MacFarlane1-8/+5
If we're producing a fragment, just skip normalization. After all, the fragment might be somewhere in the middle of the document. It's more important for fragments to have consistency in rendering (so they can be pieced together) than to normalize. This closes #2394. It's simpler and more robust than my earlier fix.
2015-10-12Revert "RST writer: tweaks to header normalization."John MacFarlane1-22/+4
This reverts commit 476b383c578699567ac4630391a15855521ab3d4.
2015-10-12RST writer: tweaks to header normalization.John MacFarlane1-4/+22
These changes are intended to make the writer more useful to people who are processing small fragments, which may for example look like this: ### third level header from previous section ## second level header Previously such fragments got turned into two headers of the same level. The new algorithm avoids doing any normalization until we hit the minimal-level header in the fragment (here, the second level header). Closes #2394.
2015-10-11Percent-encode more special characters in URLs.John MacFarlane1-5/+5
HTML, LaTeX writers adjusted. The special characters are '<','>','|','"','{','}','[',']','^', '`'. Closes #1640, #2377.
2015-10-11HTML reader/writer: better handling of "section" elements.John MacFarlane1-2/+5
Previously `<section>` tags were just parsed as raw HTML blocks. With this change, section elements are parsed as Div elements with the class "section". The HTML writer will use `<section>` tags to render these Divs in HTML5; otherwise they will be rendered as `<div class="section">`. Closes #2438.
2015-10-11Native writer: format Div properly, with blocks separated.John MacFarlane1-0/+2
2015-10-10Merge pull request #2441 from mb21/polyglossia-langJohn MacFarlane1-20/+36
Change variable to polyglossia-lang.name and .options
2015-10-07Change variable to polyglossia-lang.name and .optionsmb211-20/+36
closes #2437
2015-10-01Set the template variable $pandoc-version$ to pandocVersion by default.Alex Vong1-0/+1
* src/Text/Pandoc/Writers/Man.hs: Set $pandoc-version$ to be pandocVersion.
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.