aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2017-02-25Docx writer bookmark improvements.John MacFarlane1-21/+29
- Bookmark start/end now surrounds content rather than preceding it. - Bookmarks generated for Div with id. Fixes jgm/pandoc-citeproc#205. - Cleaner code for handling dir and style attributes for Div.
2017-02-24Use catchError instead of runExceptT.John MacFarlane3-57/+68
2017-02-24Implemented `\graphicspath` in LaTeX reader.John MacFarlane1-68/+78
Closes #736.
2017-02-23Removed `\strut` at beginning of table cells.John MacFarlane1-1/+1
This fixes a problem with alignment of lists in table cells (closes #3436). The `\strut` at the end seems to be enough to avoid the too-close spacing that motivated addition of the strut in #1573.
2017-02-23Special-case .stretch class for images in reveal.js.John MacFarlane1-6/+21
Now in reveal.js, an image with class `stretch` in a paragraph by itself will stretch to fill the whole screen, with no caption or figure environment. Closes #1291.
2017-02-22imageSize interface changemb214-4/+4
`imageSize img` is now `imageSize opts img`
2017-02-22make imageSize recognize basic SVG dimensions, see #3462mb211-0/+1
2017-02-21MediaWiki writer: Remove newline before `</ref>`.John MacFarlane1-2/+2
Closes #2652.
2017-02-21MediaWiki writer: add display attribute on `<math>` tags.John MacFarlane1-2/+5
This allows display math to be rendered properly. Closes #3452.
2017-02-21MediaWiki writer: Updated list of syntax highlighting languages.John MacFarlane1-17/+641
Now 'r' gets you `<source>` rather than `<code>` (among others). Closes #3461.
2017-02-20Use lazy loading for reveal.js slide shows.John MacFarlane1-7/+18
* In HTML writer, with reveal.js we use data-src instead of src for images. * In SelfContained, we also load resources from data-src. Closes #2283.
2017-02-17Added warnings for non-rendered blocks to some writers.John MacFarlane10-76/+133
2017-02-17FB2 writer: don't render RawBlock as code.John MacFarlane1-4/+7
2017-02-15ZimWiki writer: removed internal formatting from note and table cells, ↵Alex Ivkin1-24/+54
because ZimWiki does not support it (#3446)
2017-02-12Do not strip # from Org anchor linksAlexander Krotov1-1/+1
Links with # are perfectly valid according to http://orgmode.org/manual/Internal-links.html#Internal-links
2017-02-11RST reader/writer: properly handle table captions.John MacFarlane1-4/+5
Currently the support for the `.. table` directive is a bit limited; we don't yet support the `widths` field. But at least you can have a proper captioned table.
2017-02-11HTML writer: report when not rendering raw inline/block.John MacFarlane1-3/+8
2017-02-11Use new warnings throughout the code base.John MacFarlane7-31/+29
2017-02-05Handle language in inline code with --listings.John MacFarlane1-4/+9
Closes #3422.
2017-02-05Removed redundant import.John MacFarlane1-1/+0
2017-02-04Changed writerEpubMetadata to a Maybe String.John MacFarlane1-1/+1
API change.
2017-02-04Improved escaping in RST writer with smart option.John MacFarlane1-6/+20
2017-02-04Org writer: reduce to two spaces after bulletsAlbert Krewinkel1-2/+2
The org writer was inserting two spaces after list bullets. Emacs Org-mode defaults to a single space, so behavior is changed to reflect this. Closes: #3417
2017-02-04Markdown writer: Better escaping when +smart.John MacFarlane1-17/+21
2017-02-04Implemented +/-smart in rst writer.John MacFarlane3-15/+29
Moved unsmartify to Writers.Shared.
2017-02-03HTML and DocBook writers: fix internal links with writerIdentifierPrefix opt ↵Mauro Bieg2-4/+6
(#3398) closes #3397
2017-02-02Org.hs: remove misleading commentAlexander Krotov1-1/+0
This comment is likely copied from RST.hs where 'refs' variable indeed exists, but makes no sense here.
2017-02-01Reduce state in Org writer (#3404)Alexander Krotov1-8/+3
2017-01-30`--mathml` and MathML in HTMLMathMethod longer take an argument.John MacFarlane4-13/+9
The argument was for a bridge javascript that used to be necessary in 2004. We have removed the script already.
2017-01-28LaTeX writer: export writeBeamer.John MacFarlane1-25/+50
Removed writerBeamer from WriterOptions.
2017-01-27HTML: export separate functions for slide formats.John MacFarlane1-53/+111
writeS5, writeSlideous, writeRevealJs, writeDZSlides, writeSlidy. Removed writerSlideVariant from WriterOptions.
2017-01-27HTML writer: export writeHtmlStringForEPUB.John MacFarlane2-26/+42
Options: Remove writerEPUBVersion.
2017-01-26Split writeDocbook into writeDocbook4, writeDocbook5.John MacFarlane1-22/+40
Removed writerDocbookVersion in WriterOptions. Renamed default.docbook template to default.docbook4. Allow docbook4 as an output format. But alias docbook = docbook4.
2017-01-26EPUB writer: split writeEPUB into writeEPUB2, writeEPUB3.John MacFarlane1-7/+24
Also include explicit epub2 output format in CLI tool.
2017-01-25Provide explicit separate functions for HTML 4 and 5.John MacFarlane5-56/+88
* Text.Pandoc.Writers.HTML: removed writeHtml, writeHtmlString, added writeHtml4, writeHtml4String, writeHtml5, writeHtml5String. * Removed writerHtml5 from WriterOptions. * Renamed default.html template to default.html4. * "html" now aliases to "html5"; to get the old HTML4 behavior, you must now specify "-t html4".
2017-01-25Cleanups for rebase.John MacFarlane1-2/+2
2017-01-25Removed writerHighlight; made writerHighlightStyle a Maybe.John MacFarlane3-35/+32
API change. For no highlighting, set writerHighlightStyle to Nothing.
2017-01-25Revert "Added page breaks into Pandoc."John MacFarlane23-53/+3
This reverts commit f02a12aff638fa2339192231b8f601bffdfe3e14.
2017-01-25Fixed shadowing warnings.John MacFarlane1-3/+3
2017-01-25Removed writerIgnoreNotes.John MacFarlane3-15/+9
Instead, just temporarily remove notes when generating TOC lists in HTML and Markdown (as we already did in LaTeX). Also export deNote from Text.Pandoc.Shared. API change in Shared and Options.WriterOptions.
2017-01-25Removed writerTeXLigatures.John MacFarlane2-4/+4
Make `smart` extension work in LaTeX/ConTeXt writers instead. Instead of `-t latex --no-tex-ligatures`, do `-t latex-smart`.
2017-01-25Make the `smart` extension affect the Markdown writer.John MacFarlane1-6/+29
Thus, to "unsmartify" something that has been parsed as smart by pandoc, you can use `-t markdown+smart`, and straight quotes will be produced instead of curly quotes, etc. Example: % pandoc -f latex -t markdown+smart ``hi''---ok ^D "hi"---ok
2017-01-25Fixed something small that broke in rebase.John MacFarlane1-1/+1
2017-01-25Text.Pandoc.Shared: Removed fetchItem, fetchItem'.John MacFarlane6-36/+46
Made changes where these are used, so that the version of fetchItem from PandocMonad can be used instead.
2017-01-25Removed `--normalize` option and normalization functions from Shared.John MacFarlane2-6/+13
* Removed normalize, normalizeInlines, normalizeBlocks from Text.Pandoc.Shared. These shouldn't now be necessary, since normalization is handled automatically by the Builder monoid instance. * Remove `--normalize` command-line option. * Don't use normalize in tests. * A few revisions to readers so they work well without normalize.
2017-01-25Class: Removed getDefaultReferenceDocx/ODT from PandocMonad.John MacFarlane2-3/+5
We don't need these, since the default docx and odt can be retrieved using `readDataFile datadir "reference.docx"` (or odt).
2017-01-25Class: removed 'fail' from PandocMonad.John MacFarlane1-1/+1
Do we need this? I don't see why. There's a name clash which would better be avoided.
2017-01-25Simplified reference-docx/reference-odt to reference-doc.John MacFarlane2-2/+2
* Text.Pandoc.Options.WriterOptions: removed writerReferenceDocx and writerReferenceODT, replaced them with writerReferenceDoc. This can hold either an ODT or a Docx. In this way, writerReferenceDoc is like writerTemplate, which can hold templates of different formats. [API change] * Removed `--reference-docx` and `--reference-odt` options. * Added `--reference-doc` option.
2017-01-25Remove now-unnecessary lifts in Markdown writer.John MacFarlane1-9/+6
Other writers still TBD.
2017-01-25Class: rename addWarning[WithPos] to warning[WithPos].John MacFarlane6-15/+15
There's already a function addWarning in Parsing! Maybe we can dispense with that now, but I still like 'warning' better as a name.