aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2017-03-02LaTeX writer: use % after hypertarget before code blockJohn MacFarlane1-1/+4
2017-03-02LaTeX writer: minor tweak to hypertarget (semantically irrelevant).John MacFarlane1-1/+3
2017-03-02Removed unnecessary import.John MacFarlane1-1/+0
2017-03-01LaTeX writer: always add hypertarget when there's a non-empty identifier.John MacFarlane1-29/+19
Previously the hypertargets were only added when there was actually a link to that identifier. Closes #2719.
2017-03-01Writers: Use gets to access MonadState where possible (#3480)Alexander Krotov7-53/+53
2017-03-01Markdown writer: Fixed grid tables embedded in grid tables.John MacFarlane1-32/+49
Closes #2834.
2017-03-01Markdown writer: Refactored gridTable to use widths in chars.John MacFarlane1-10/+12
2017-03-01ODT writer: calculate aspect ratio for percentage-sized images (#3478)Mauro Bieg2-4/+2
closes #3239
2017-02-27Removed `--epub-stylesheet`; use `--css` instead.John MacFarlane1-24/+28
* Removed writerEpubStylesheet in WriterOptions. * Removed `--epub-stylesheet` option. * Allow `--css` to be used with epub. * Allow multiple stylesheets to be used. * Stylesheets will be taken both from `--css` and from the `stylesheet` metadata field (which can contain either a file path or a list of them). Closes #3472, #847.
2017-02-25Fixed type sig for older GHC versions.John MacFarlane1-1/+1
2017-02-25Markdown writer: don't include variables in metadata blocks!John MacFarlane1-4/+3
Previously variables set on the command line were included in e.g. YAML metadata, contrary to documentation and intentions.
2017-02-25Fixed addVariablesToJSON.John MacFarlane1-2/+5
It was previously not allowing multiple values to become lists.
2017-02-25Writers.Shared: export metaToJSON', addVariablesToJSON.John MacFarlane1-10/+28
This allows us to add the variables AFTER using the metadata to generate a YAML header (in the Markdown writer). Addresses the problem shown by https://travis-ci.org/jgm/pandoc/jobs/205154181#L705 See #3439
2017-02-25Writers.Shared: Changed metaToJSON a bit.John MacFarlane1-4/+17
Now we handle metadata first, then variables. This way, meta-json variable will not contain representations of variables, only proper metadata.
2017-02-25AsciiDoc writer: use PandocMonad throughout.John MacFarlane1-24/+36
Issues info messages for non-rendered raw content.
2017-02-25Docx writer: use Set for dynamic styles to avoid duplicates.John MacFarlane1-8/+10
2017-02-25Docx writer: bookmarks for Span with id.John MacFarlane1-45/+58
And cleaned up code.
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.