aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2014-08-30Textile reader: Improved table support.John MacFarlane1-4/+13
We can now handle all different alignment types, for simple tables only (no captions, no relative widths, cell contents just plain inlines). Other tables are still handled using raw HTML. Addresses #1585 as far as it can be addresssed, I believe.
2014-08-30Merge branch 'mime' of https://github.com/Aelve/John into Aelve-mimeJohn MacFarlane3-16/+12
Conflicts: src/Text/Pandoc/Writers/Docx.hs
2014-08-30Merge pull request #1580 from jkr/stringCellDokuWikiJohn MacFarlane1-10/+36
DokuWiki writer: Backslash newlines in table cells
2014-08-30DokuWiki writer: Use backslash newlines in table cells.Jesse Rosenthal1-10/+36
Write out strings in table cells with backslash linebreaks in place of newlines. We also want to remove the first two spaces of an indent in lists.
2014-08-29Merge pull request #1574 from jlduran/latex-horizontal-ruleJohn MacFarlane1-1/+1
LaTeX writer: Make Horizontal Rules more flexible
2014-08-29Merge branch 'ugly-tables' of https://github.com/jlduran/pandoc into ↵John MacFarlane1-5/+13
jlduran-ugly-tables
2014-08-29LaTeX writer: Add `\strut` to fix multiline tablesJose Luis Duran1-1/+2
See: http://tex.stackexchange.com/questions/34971
2014-08-28LaTeX writer: Make Horizontal Rules more flexibleJose Luis Duran1-1/+1
Currently, pandoc has hard-coded the following in order to make horizontal rules in LaTeX: ```hs "\\begin{center}\\rule{3in}{0.4pt}\\end{center}" ``` Which is fine, but does not allow customizations. It also does not take into consideration the current line width. I'm proposing this change: ```diff @@ In Writers/LaTeX.hs: -"\\begin{center}\\rule{3in}{0.4pt}\\end{center}" +"\\begin{center}\\rule{0.5\\linewidth}{\\linethickness}\\end{center}" ```
2014-08-28LaTeX writer: Fix tablesJose Luis Duran1-4/+11
- [x] Fix a bug introduced in 66378062b622b0815a1a2ddce5d557e3ad13330c, which causes the table caption to repeat across all pages - [x] Address the issues discussed [here](https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J) regarding the extra vertical space. - [ ] NOTE: This will cause multiline table cells to appear unpadded. See http://tex.stackexchange.com/questions/34971 - [x] Use [`\tabularnewline`](http://tex.stackexchange.com/questions/78796) instead of `\\`.
2014-08-27DokuWiki Writer: Refactor to use Reader monadMatthew Pickering1-47/+56
2014-08-27DokuWiki Writer: Hlint cleanupMatthew Pickering1-27/+27
2014-08-27DokuWiki Writer: Qualified all importsMatthew Pickering1-5/+10
2014-08-26Docx writer: Accomodate GHC 7.4 (no lookupEnv)Jesse Rosenthal1-1/+1
2014-08-25Docx writer: Default to user login and time of change if not given.Jesse Rosenthal1-6/+21
2014-08-25Docx writer: Implement track changes.Jesse Rosenthal1-9/+40
These have default authors and dates of "unknown" and timestamp-zero, respectively.
2014-08-24Hlint changes to Docx writer.John MacFarlane1-22/+19
2014-08-23Docx writer: Bibliography entries get Bibliography style.John MacFarlane1-2/+6
Closes #1559.
2014-08-19EPUB writer: don't use page-progression-direction in EPUB2.John MacFarlane1-16/+14
Also, if page-progression-direction not specified in metadata, don't include the attribute even in EPUB3; not including it is the same as including it with the value "default", as we did before. Closes #1550.
2014-08-17Merge pull request #1536 from considerate/masterJohn MacFarlane1-0/+3
Add row width to tables in Docx XML
2014-08-17Docx writer: Fixed regression, bungled list numbering.John MacFarlane1-3/+10
In pandoc 1.13, all lists come out as basic ordered lists. This fixes that bad regression. Closes #1544.
2014-08-17MIME cleanup.Artyom Kazak3-16/+12
* Create a type synonym for MIME type (instead of `String`). * Add `getMimeTypeDef` function. * Avoid recreating MIME type `Map`s every time. * Move “Formula-...” case handling into `getMimeType`.
2014-08-17Simplify row width calculation.Viktor Kronvall1-2/+2
2014-08-17Include row width in table rows.Christoffer Ackelman1-0/+3
Added a property to all table rows where the sum of column widths is specified in pct (fraction of 5000).
2014-08-16Markdown writer: don't escape $, ^, ~ when extensions are deactivated.John MacFarlane1-5/+16
`tex_math_dollars`, `superscript`, and `subscript` extensions, respectively. Closes #1127.
2014-08-14Make `raw_tex` extension non-default for textile reader, writer.John MacFarlane1-1/+3
Enable `raw_tex` extension in textile writer. Closes #1532.
2014-08-12Merge pull request #1527 from mpickering/juicypixelsJohn MacFarlane1-2/+2
Attempts to convert gif, tiff and bmp to png in pdf writer
2014-08-13LaTeX Writer: Added missing closing braces to hyperdef commandsMatthew Pickering1-2/+2
2014-08-12HTML writer: use 'uri' or 'email' class for autolinks.John MacFarlane1-5/+8
This allows them to be styled specially. Closes #1501.
2014-08-12ConTeXt writer: improved autolink detection.John MacFarlane1-1/+1
It previously failed in some cases with escaped special characters.
2014-08-12Beamer: Use \footnote<.->{..} for notes.John MacFarlane1-1/+6
This ensures that the footnotes will not appear before the overlays in which their corresponding note markers appear. Closes #1525.
2014-08-11LaTeX writer: Don't produce `\label{}` for Div or Span.John MacFarlane1-8/+7
Just `\hyperdef`. A slight amendment to #1519.
2014-08-11Merge pull request #1519 from mpickering/moreJohn MacFarlane1-2/+7
EPUB Normalisation and anchors for div blocks in tex
2014-08-11Merge pull request #1365 from gbataille/docx-marginJohn MacFarlane1-1/+9
Scale images to fit the page for DOCX
2014-08-11TeX Writer: Write hyperdef and label for identifiers on Div blocksMatthew Pickering1-2/+7
2014-08-11EPUB Writer: Added page-progression-direction meta fieldMatthew Pickering1-2/+21
2014-08-11EPUB Writer: Added explicit importsMatthew Pickering1-18/+26
2014-08-09HTML writer: Don't include empty TOC items for slide shows.John MacFarlane1-0/+3
Previously creating a slide with a horizontal rule would result in an empty list item in the TOC. This patch fixes that.
2014-08-08Plain writer: Use ALL CAPS for level 1 headers.John MacFarlane1-1/+4
2014-08-08Markdown writer: Respect -raw_html.John MacFarlane1-12/+14
pandoc -t markdown-raw_html should not emit any raw HTML, even span and div tags that go with pandoc Span and Div elements. Cleaned up a bit of the logic with extensions and plain.
2014-08-08Org Writer: Write anchor elementsMatthew Pickering1-0/+2
The Org Writer now writes empty span elements which have an id as an anchor. For example `Span ("uid", [], []) []` becomes `<<uid>>`
2014-08-04Merge pull request #1486 from Aelve/minorJohn MacFarlane8-49/+54
Very minor cleanup and readability changes
2014-08-04Use texmath 0.7 interface.John MacFarlane4-16/+19
2014-08-04Add PatternGuards pragmas.Artyom Kazak3-2/+5
2014-08-04Remove dangling `where` from one function.Artyom Kazak1-1/+0
2014-08-04Use `stripPrefix` where appropriate.Artyom Kazak7-40/+43
2014-08-04Clean up `mediaTypeOf` a bit.Artyom Kazak1-6/+6
2014-08-03Correctly implement capitalisation.Artyom Kazak2-15/+6
Using `map toUpper` to capitalise text is wrong, as e.g. “Straße” should be converted to “STRASSE”, which is 1 character longer. This commit adds a `capitalize` function and replaces 2 identical implementations in different modules (`toCaps` and `capitalize`) with it.
2014-08-02Text.Pandoc.SelfContained changes.John MacFarlane1-2/+1
* mkSelfContained now takes just two arguments, WriterOptions and the string. * It no longer looks in data files. This only made sense when we had copies of slidy and S5 code there. * Shared.fetchItem' is used instead of the nearly duplicate getItem.
2014-07-31New module, Text.Pandoc.MediaBag.John MacFarlane1-1/+2
Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid.
2014-07-31Made MediaBag a newtype, and added mime type information to media.John MacFarlane1-1/+1
Shared now exports functions for interacting with a MediaBag: - `emptyMediaBag` - `lookuMedia` - `insertMedia` - `mediaDirectory` - `extractMediaBag`