aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2016-05-01Use `codeBlockWith`Sidharth Kapur1-6/+6
2016-05-01Add test for RST code directive classSidharth Kapur1-0/+15
2016-04-29Docbook5 writer: Properly handle ulink/linkIvo Clarysse1-33/+34
2016-04-29Add docbook5 writer supportIvo Clarysse3-0/+1829
2016-04-27Revert "LaTeX writer: Add `\strut` to fix multiline tables"John MacFarlane1-45/+45
This reverts commit 4c684561ee0665b014e887ae559b7020e4e9f2d3. See https://groups.google.com/d/msg/pandoc-discuss/u6J-_aCProU/UufN3IYRAgAJ This should fix uneven spacing issues in multiline tables.
2016-04-26Merge pull request #2735 from mb21/patch-1John MacFarlane1-3/+3
LaTeX Writer: fix polyglossia to babel env mapping
2016-04-26Merge pull request #2829 from adunning/patch-1John MacFarlane1-1/+1
LaTeX writer: Add missing languages.
2016-04-26Ignore leading space in org code blocksEmanuel Evans1-0/+27
Fixes #2862 Also fix up tab handling for leading whitespace in code blocks.
2016-04-16Docx Reader: Tests for track-changes movingJesse Rosenthal5-0/+22
2016-04-10Markdown reader: Fix pandoc title blocks with lines ending in 2 spaces.John MacFarlane2-3/+3
Closes #2799. Also added -s to markdown-reader-more test.
2016-04-01LaTeX writer: Add missing languages.Andrew Dunning1-1/+1
Updates the list from the hyphenation files at <http://mirror.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/loadhyph/>.
2016-03-20LaTeX Writer: fix polyglossia to babel env mappingMauro Bieg1-3/+3
allow for optional argument in square brackets, closes #2728
2016-03-16Docx reader: Add test for enumerated headers.Jesse Rosenthal3-1/+9
We don't want them to turn into a list.
2016-03-10Fixed behavior of base tag.John MacFarlane1-1/+4
+ If the base path does not end with slash, the last component will be replaced. E.g. base = `http://example.com/foo` combines with `bar.html` to give `http://example.com/bar.html`. + If the href begins with a slash, the whole path of the base is replaced. E.g. base = `http://example.com/foo/` combines with `/bar.html` to give `http://example.com/bar.html`. Closes #2777.
2016-03-09Markdown reader: Improved pipe table parsing.John MacFarlane2-1/+23
Fixes #2765. Added test case.
2016-03-08DokuWiki writer: use $$ for display math.John MacFarlane1-1/+1
2016-02-20Merge pull request #2646 from tarleb/org-figure-with-no-nameJohn MacFarlane1-4/+4
Prefix even empty figure names with "fig:"
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-20Merge pull request #2691 from tarleb/org-image-file-linksJohn MacFarlane1-0/+4
Org reader: Refactor link-target processing
2016-02-03HTML writer: don't include alignment attribute for default table columns.John MacFarlane1-14/+14
Previously these were given "left" alignment. Better to leave off alignment attributes altogether. Closes #2694.
2016-02-02Docx reader: Add tests for adjacent hyperlinks.Jesse Rosenthal3-0/+5
2016-01-31Org reader: Refactor link-target processingAlbert Krewinkel1-0/+4
Cleanup of the code for link target handling. Most notably, the canonicalization of a link is handled by a separate function. This fixes #2684.
2016-01-25Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.John MacFarlane2-2/+11
Closes #2674.
2016-01-21Added old-style tests for TEI writer (tests/tables.tei, tests/writer.tei).John MacFarlane3-1/+1033
2016-01-21Merge pull request #2638 from c-forster/teiwriterJohn MacFarlane2-0/+45
Add TEI Writer.
2016-01-21Markdown writer: Use hyphens for yaml metadata block bottom lineHenrik Tramberend1-1/+1
2016-01-20Adjusted longtable in tests.John MacFarlane1-7/+7
New default is not to include `[c]` option.
2016-01-19Added some entity tests in Markdown reader tests.John MacFarlane1-9/+11
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.csforste2-0/+43
2016-01-11Prefix even empty figure names with "fig:"Albert Krewinkel1-4/+4
The convention used by pandoc for figures is to mark them by prefixing the name with "fig:". The org reader failed to do this if a figure had no name. The test for this was broken as well. This fixes #2643.
2016-01-09LaTeX writer: restore old treatment of Span.John MacFarlane1-1/+1
A Span is rendered with surrounding {braces}. This was a regression in 1.16. Closes #2624.
2016-01-08Added some entity tests in Markdown reader tests.John MacFarlane1-0/+9
2016-01-07Fix function dropping subtrees tagged :noexport:Albert Krewinkel1-0/+10
Continue scanning for comment subtrees beyond only the first block. Note to self: when writing an recursive function, don't forget to, you know, actually recurse. Shout to @mrvdb for noticing this. This fixes #2628.
2016-01-02Textile reader: don't allow block HTML tags in inline contexts.John MacFarlane2-8/+6
The reader previously did allow this, following redcloth, which happily parses Html blocks can be <div>inlined</div> as well. as <p>Html blocks can be <div>inlined</div> as well.</p> This is invalid HTML, and this kind of thing can lead to parsing problems (stack overflows) as well. So this commit undoes this behavior. The above sample now produces; <p>Html blocks can be</p> <div> <p>inlined</p> </div> <p>as well.</p>
2016-01-02MediaWiki writer: fix spacing issues.John MacFarlane1-108/+108
+ 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-19LaTeX/Beamer template changes (Thomas Hodgson):John MacFarlane4-0/+16
* 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-17ICML writer: intersperse line breaksmb212-430/+756
instead of appending them to every ParagraphStyleRange closes #2501
2015-12-16ICML writer: added figure handling, closes #2590mb211-1/+16
2015-12-13Merge pull request #2570 from mb21/rst-reader-imgattrsJohn MacFarlane5-7/+7
Image attributes
2015-12-13Fixed ICML image syntax for local files.John MacFarlane1-2/+2
`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-13Docx reader: image attributesmb214-6/+6
2015-12-13RST reader: image attributesmb211-1/+1
2015-12-12Fixed tests.John MacFarlane12-24/+30
2015-12-12Test fixes.John MacFarlane20-237/+238
2015-12-12Modified readers to emit SoftBreak when appropriate.John MacFarlane6-6/+6
2015-12-11Implemented SoftBreak and new `--wrap` option.John MacFarlane19-83/+86
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-03LaTeX template changes:John MacFarlane4-8/+0
- only pass options to color package if colorlinks is set - make definition of `\euro` conditional in xelatex/lualatex, as it is already for pdflatex (Andrew Dunning)
2015-12-03Fixed man template so disabling hyphenation actually works.John MacFarlane1-1/+1
The command needs to come after .TH.
2015-11-24Added bodyless pipe table test case.John MacFarlane2-1/+11
See #2556.
2015-11-23LaTeX reader: Use curly quotes for unmatched `.John MacFarlane1-1/+1
Partially addresses #2555. Note that there's still a problem with the code sample given.