aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers
AgeCommit message (Collapse)AuthorFilesLines
2016-04-01LaTeX writer: Add missing languages.Andrew Dunning1-7/+17
Updates the list from the hyphenation files at <http://mirror.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/loadhyph/>.
2016-03-30Recognize `la-x-classic` as Classical Latin.Andrew Dunning1-0/+2
This allows one to access the hyphenation patterns at <http://mirrors.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-la-x-classic.tex>, using its private language tag.
2016-03-26EPUB writer: set 'navpage' variable on nav page.John MacFarlane1-1/+2
This allows templates to treat it differently.
2016-03-25Removed two superfluous lines.John MacFarlane1-2/+0
2016-03-24LaTeX writer: better positioning for hypertarget in figures.John MacFarlane1-16/+23
Closes #2813.
2016-03-24LaTeX writer: Fixed position of label in figures.John MacFarlane1-3/+3
Partially addresses #2813. This isn't perfect, because now the hypertarget is in the wrong place -- when you link to the figure, the screen is positioned with the caption at the top, and most of the figure off screen. So this needs a bit more tweaking.
2016-03-19Merge pull request #2637 from mb21/latex-figure-labelJohn MacFarlane1-19/+24
LaTeX writer: figure label
2016-03-18ConTeXt writer: fix whitespace at line beginning in line blocks.John MacFarlane1-1/+11
Add a `\strut` after `\crlf` before space. Closes #2744, #2745. Thanks to @c-foster. This uses the fix suggested by @c-foster. Mid-line spaces are still not supported, because of limitations of the Markdown parser.
2016-03-18LaTeX writer: Avoid double toprule in headerless table with caption.John MacFarlane1-7/+10
Closes #2742.
2016-03-10 Docx Writer: handle image alt textmb211-2/+2
closes #2754
2016-03-08DokuWiki writer: use $$ for display math.John MacFarlane1-1/+4
2016-02-20Merge pull request #2668 from monofon/fix/yaml-metadata-block-bottom-lineJohn MacFarlane1-1/+1
Markdown writer: Use hyphens for yaml metadata block bottom line
2016-02-18LaTeX writer: clean up options parser.Jesse Rosenthal1-3/+4
Make sure that we require the closing bracket.
2016-02-18LaTeX writer: treat memoir template with `article` opt as articleJesse Rosenthal1-6/+21
We currently treat all memoir templates as books. This means that pandoc will infer the `--chapters` argument, even if the `article` iption is set for memoir. This commit makes pandoc treats the document as an article if there is an article option (i.e., `\documentclass[12pt,article]{memoir}`). Note that this refactors out the parsec parsers for document class and options, to make it a little clearer what's going on.
2016-02-05Custom writer: Pass attributes parameter to CaptionedImage.John MacFarlane1-2/+2
Closes #2697.
2016-02-03HTML writer: don't include alignment attribute for default table columns.John MacFarlane1-2/+5
Previously these were given "left" alignment. Better to leave off alignment attributes altogether. Closes #2694.
2016-01-22Changed type of Shared.uniqueIdent argument from [String] to Set String.John MacFarlane4-11/+15
This avoids performance problems in documents with many identically named headers. Closes #2671.
2016-01-21Merge pull request #2638 from c-forster/teiwriterJohn MacFarlane1-0/+320
Add TEI Writer.
2016-01-21Markdown writer: Use hyphens for yaml metadata block bottom lineHenrik Tramberend1-1/+1
2016-01-20LaTeX writer: Allow more flexible table alignmentHenrik Tramberend1-1/+1
2016-01-19Added some entity tests in Markdown reader tests.John MacFarlane1-6/+6
Change types of divs. From Docbook "sect#" and "simplesect" to "level#" and "section." Add tests. Add mention of TEI to README. Small changes to TEI writer.
2016-01-19Add TEI Writer.csforste1-0/+320
2016-01-14HTML writer: harmless code simplification.John MacFarlane1-34/+32
Since the 'math' is only put into the template if stMath is set anyway, there's no need for this conditional.
2016-01-13Org writer - pass through RawInline with format "org".John MacFarlane1-2/+7
2016-01-10LaTeX writer: figure labelmb211-19/+24
2016-01-09LaTeX writer: restore old treatment of Span.John MacFarlane1-17/+15
A Span is rendered with surrounding {braces}. This was a regression in 1.16. Closes #2624.
2016-01-05RST, Markdown writers: Fixed rendering of grid tables with blank rows.John MacFarlane2-2/+2
Closes #2615.
2016-01-02MediaWiki writer: fix spacing issues.John MacFarlane1-1/+5
+ Start cell on new line unless it's a single Para or Plain. + For single Para or Plain, insert a space after the `|` to avoid problems when the text begins with a character like `-`. Closes #2604, closes #2606.
2015-12-29Use cmark 0.5.John MacFarlane1-17/+17
Closes #2605.
2015-12-22ConTeXt writer: set default layout based on margin-left, etc.John MacFarlane1-0/+10
This sets up `\setuplayout` based on the variables `margin-left`, `margin-right`, `margin-bottom`, and `margin-top`, if no layout is given.
2015-12-22LaTeX writer: create defaults for geometry using margin-left etc.John MacFarlane1-1/+10
If `geometry` has no value, but `margin-left`, `margin-right`, `margin-top`, and/or `-margin-bottom` are given, a default value for `geometry` is created from these. Note that these variables already affect PDF production via HTML5 with wkhtmltopdf.
2015-12-19LaTeX/Beamer template changes (Thomas Hodgson):John MacFarlane1-0/+1
* Added `thanks` variable * Use `parskip.sty` when `indent` isn't set (fall back to using `setlength` as before if `parskip.sty` isn't available). * Use `biblio-style` with biblatex. * Added `biblatexoptions` variable. * Added `section-titles` variable (defaults to true) to enable/suppress section title pages in beamer slide shows. * Moved beamer themes after fonts, so that themes can change fonts. (Previously the fonts set were being clobbered by lmodern.sty.)
2015-12-19Added needed import of FromJSON.John MacFarlane1-1/+1
Fixes build failure.
2015-12-19Fix language code for Czech (cs not cz)John MacFarlane2-2/+1
Closes #2597.
2015-12-19Merge branch 'master' of https://github.com/AndreasLoow/pandoc into ↵John MacFarlane1-1/+6
AndreasLoow-master
2015-12-17ICML writer: intersperse line breaksmb211-12/+17
instead of appending them to every ParagraphStyleRange closes #2501
2015-12-16ICML writer: added figure handling, closes #2590mb211-3/+12
2015-12-13ICML writer: removed redundant import.John MacFarlane1-1/+0
2015-12-13Merge pull request #2570 from mb21/rst-reader-imgattrsJohn MacFarlane2-27/+34
Image attributes
2015-12-13Fixed ICML image syntax for local files.John MacFarlane1-1/+1
`file:filename` rather than `file://./filename`. I think this is right; it matches what we had before with people actually using the ICML writer, and seems to match examples in the spec. I don't have a copy of InDesign I can test on, though. @DigitalPublishingToolkit and @mb21, can you have a look?
2015-12-13Use posix path separators in ICML link URIs.John MacFarlane1-1/+1
Closes #2589.
2015-12-13ODT/OpenDocument writer: improved image attributesmb212-27/+34
- support for percentage widths/heights - use Attr instead of title to get dimensions from ODT walker to writeOpenDocument
2015-12-13AsciiDoc writer: support anchors in spans with id elements.John MacFarlane1-1/+5
2015-12-13AsciiDoc writers: Add anchors on Div elements.John MacFarlane1-1/+4
This partially addresses jgm/pandoc-citeproc#143. It does not use the native asciidoc syntax for citations, but it does get the links to individual citations working.
2015-12-12Restore no wrapping of XML in Docx, ODT.John MacFarlane2-2/+2
It's possible that wrapping causes problems; safer to turn it off.
2015-12-12FB2 writer: support SoftBreak.John MacFarlane1-1/+2
This was omitted earlier.
2015-12-11Implemented SoftBreak and new `--wrap` option.John MacFarlane25-69/+177
Added threefold wrapping option. * Command line option: deprecated `--no-wrap`, added `--wrap=[auto|none|preserve]` * Added WrapOption, exported from Text.Pandoc.Options * Changed type of writerWrapText in WriterOptions from Bool to WrapOption. * Modified Text.Pandoc.Shared functions for SoftBreak. * Supported SoftBreak in writers. * Updated tests. * Updated README. Closes #1701.
2015-12-01Docx writer: better handling of PDF images.John MacFarlane1-8/+2
Previously we tried to get the image size from the image even if an explicit size was specified. Since we still can't get image size for PDFs, this made it impossible to use PDF images in docx. Now we don't try to get the image size when a size is already explicitly specified.
2015-11-24Markdown writer: use raw HTML for link/image attributes whenJohn MacFarlane1-2/+12
the `link_attributes` extension is unset and `raw_html` is set. Closes #2554.
2015-11-23Beamer writer: mark frame as fragile when it contains verbatim.John MacFarlane1-5/+1
Closes #1613.