summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-11-05Org reader: absolute, relative paths in linksAlbert Krewinkel
The org reader was to restrictive when parsing links, some relative links and links to files given as absolute paths were not recognized correctly. The org reader's link parsing function was amended to handle such cases properly. This fixes #1741
2014-11-04DokuWiki writer: Better handling of block quotes.John MacFarlane
This change ensures that multiple paragraph blockquotes are rendered using native `>` rather than as HTML. Closes #1738.
2014-10-30TWiki Reader: add basic syntax testAlexander Sulfrian
2014-10-25Docx test: Remove Danish header test.Jesse Rosenthal
Redundant, now that we're testing for a more generalized sort of internationalized blocks.
2014-10-25Docx reader: add tests for i18n headers.Jesse Rosenthal
This tests blockquotes and headers in Russian. Previous tests make sure that this doesn't produce a regression in en-us Header and Blockquotes.
2014-10-23HTML writer: Make header attributes work outside top level.John MacFarlane
Previously they only appeared on top level header elements. Now they work e.g. in blockquotes. Closes #1711.
2014-10-21Merge pull request #1706 from tarleb/org-symbol-entitiesJohn MacFarlane
Org reader: parse LaTeX-style MathML entities
2014-10-20Pretty: Make CR + BLANKLINE = BLANKLINE.John MacFarlane
This fixes an extra blank line we were getting at the end of markdown fragments (as well as rst, org, etc.) Closes #1705.
2014-10-20Org reader: parse LaTeX-style MathML entitiesAlbert Krewinkel
Org supports special symbols which can be included using LaTeX syntax, but are actually MathML entities. Examples for this are `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute) or `\copy` (the copyright sign ©). This fixes #1657.
2014-10-19Parsing: fixed `inlineMath` so it handles `\text{..}` containing `$`.John MacFarlane
For example: `$x = \text{the $n$th root of $y$}`. Closes #1677.
2014-10-18Merge pull request #1680 from shelf/masterJohn MacFarlane
Respect indent when parsing Org bullet lists
2014-10-18Merge pull request #1700 from tarleb/org-emphasis-fixJohn MacFarlane
Org reader: fix rules for emphasis recognition
2014-10-18Org reader: Drop COMMENT document treesAlbert Krewinkel
Document trees under a header starting with the word `COMMENT` are comment trees and should not be exported. Those trees are dropped silently. This closes #1678.
2014-10-18Org reader: fix rules for emphasis recognitionAlbert Krewinkel
Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised strings. This is wrong, as `,` and `'` are forbidden border chars and may not occur on the inner border of emphasized text. This patch enables the reader to matches the reference implementation in that it reads the above strings as plain text.
2014-10-17Fix indent issue for definition listsTimothy Humphries
Tidy up fix for #1650, #1698 as per comments in #1680. Fix same issue for definition lists with the same method.
2014-10-15Escape spaces. Fixes jgm/pandoc#1694.Bjorn Buckwalter
2014-10-12Respect indent when parsing Org bullet listsTimothy Humphries
Fixes issue with top-level bullet list parsing. Previously we would use `many1 spaceChars` rather than respecting the list's indent level. We also permitted `*` bullets on unindented lists, which should unambiguously parse as `header 1`. Combined, this meant headers at a different indent level were being unwittingly slurped into preceding bullet lists, as per Issue #1650.
2014-09-27Merge pull request #1601 from jkr/windowsfixJohn MacFarlane
Fix path-slashes inside archive for windows
2014-09-27Update tests for #1649Matthew Pickering
2014-09-26Fix 'Ext_lists_without_preceding_blankline' bug.Artyom
* Fixes #1636. * Adds a test.
2014-09-25EPUB Tests: Seperating image testing from other featuresmpickering
2014-09-25Shared: Make collapseFilePath OS-agnosticmpickering
2014-09-09Updated tests for #1616 change.John MacFarlane
2014-09-09LaTeX writer: Test for protecting images in header.Jesse Rosenthal
2014-09-05Docx reader: Add test for polyglot headers.Jesse Rosenthal
Only Danish at the moment.
2014-09-04Org reader: Update TestsJesse Rosenthal
Test for markup after blank line.
2014-09-04Docx Reader: Add tests for numbered headers.Jesse Rosenthal
2014-09-02Docx reader: Modify mediabag test accordingly.Jesse Rosenthal
2014-09-01LaTeX writer: Use a declaration for tight listsJose Luis Duran
Currently, pandoc has hard-coded the following in order to make tight lists in LaTeX: ```hs text "\\itemsep1pt\\parskip0pt\\parsep0pt" ``` Which is fine, but does not allow customizations. For example, the `memoir` class already has a `\tightlist` declaration for this purpose: ```tex \newcommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} ``` I'm proposing to use a similar solution: ```diff @@ In Writers/LaTeX.hs: -then text "\\itemsep1pt\\parskip0pt\\parsep0pt" +then text "\\tightlist" @@ In templates/default.latex: +\newcommand{\tightlist}{% + \setlength{\itemsep}{1pt}\setlength{\parskip}{0pt}\setlength{\parsep}{0pt}} ``` This allows us to customize the tightness to our needs. Backward Compatibility If a person is using a custom LaTeX template (not based upon the `memoir` class), the `\tightlist` declaration must be added.
2014-08-31Merge pull request #1594 from jkr/itemFixJohn MacFarlane
Item fix
2014-08-31LaTeX writer: Add tests for header-in-item.Jesse Rosenthal
2014-08-31Markdown reader: better handling of paragraph in div.John MacFarlane
Previously text that ended a div would be parsed as Plain unless there was a blank line before the closing div tag. Test case: <div class="first"> This is a paragraph. This is another paragraph. </div> Closes #1591.
2014-08-30DokuWiki writer: Make tables prettier by aligning columns.John MacFarlane
Also cleaned up crufty code and added tests.
2014-08-30Textile reader: Improved table support.John MacFarlane
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-30Dokuwiki writer: Add a test for multiblock table cells.Jesse Rosenthal
We have to add a new file, because the original table tests don't look for this.
2014-08-29Merge pull request #1574 from jlduran/latex-horizontal-ruleJohn MacFarlane
LaTeX writer: Make Horizontal Rules more flexible
2014-08-29Merge branch 'ugly-tables' of https://github.com/jlduran/pandoc into ↵John MacFarlane
jlduran-ugly-tables
2014-08-29LaTeX writer: Add `\strut` to fix multiline tablesJose Luis Duran
See: http://tex.stackexchange.com/questions/34971
2014-08-28Docx reader: update tests for new table behavior.Jesse Rosenthal
2014-08-28LaTeX writer: Make Horizontal Rules more flexibleJose Luis Duran
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 Duran
- [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-21Merge pull request #1553 from mpickering/masterJohn MacFarlane
Txt2Tags reader: Header is now parsed only if standalone flag is set
2014-08-21Txt2Tags Reader: Parse Meta informationmpickering
The header is now parsed as meta information. The first line is the `title`, the second is the `author` and third line is the `date`.
2014-08-20Txt2Tags reader: Header is now parsed only if standalone flag is setmpickering
2014-08-20More test updates.John MacFarlane
2014-08-20Updated tests.John MacFarlane
2014-08-16HTML reader: Parse appropriately styled span as SmallCaps.John MacFarlane
2014-08-16Docx reader: Test for character styles.Jesse Rosenthal
2014-08-14Markdown reader: Better handle quote characters in inline links.John MacFarlane
This was previously failing to be recognized as a link: [Test](http://en.wikipedia.org/wiki/Ward's_method) Closes #1534.
2014-08-14Make `raw_tex` extension non-default for textile reader, writer.John MacFarlane
Enable `raw_tex` extension in textile writer. Closes #1532.