summaryrefslogtreecommitdiff
path: root/tests/Tests
Commit message (Collapse)AuthorAge
* Use custom Prelude to avoid compiler warnings.John MacFarlane2015-10-14
| | | | | | | | | | | | | - The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
* RST writer: do header normalization only in "standalone" mode.John MacFarlane2015-10-12
| | | | | | | | | | | If we're producing a fragment, just skip normalization. After all, the fragment might be somewhere in the middle of the document. It's more important for fragments to have consistency in rendering (so they can be pieced together) than to normalize. This closes #2394. It's simpler and more robust than my earlier fix.
* Percent-encode more special characters in URLs.John MacFarlane2015-10-11
| | | | | | | HTML, LaTeX writers adjusted. The special characters are '<','>','|','"','{','}','[',']','^', '`'. Closes #1640, #2377.
* Merge pull request #2412 from frerich/reader/docbook/xref_supportJohn MacFarlane2015-10-10
|\ | | | | Added support for <xref> tag in DocBook reader
| * Added proper support for DocBook 'xref' elementsFrerich Raabe2015-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | 'xref' is used to create cross references to other parts of the document. It is an empty element - the cross reference text depends on various attributes. Quoting 'DocBook: The Definitive Guide': 1. If the endterm attribute is specified on xref, the content of the element pointed to by endterm will be used as the text of the cross-reference. 2. Otherwise, if the object pointed to has a specified XRefLabel, the content of that attribute will be used as the cross-reference text.
* | Docx Reader: Create special punctuation testOphir Lifshitz2015-10-04
| |
* | MediaBag: ensure that / is always used as path separator.John MacFarlane2015-09-26
|/
* Merge pull request #2406 from tarleb/org-verse-fixJohn MacFarlane2015-09-20
|\ | | | | Make sure verse blocks can contain empty lines
| * Make sure verse blocks can contain empty linesAlbert Krewinkel2015-09-19
| | | | | | | | | | | | | | | | | | | | | | | | The previous verse parsing code made the faulty assumption that empty strings are valid (and empty) inlines. This isn't the case, so lines are changed to contain at least a newline. It would generally be nicer and faster to keep the newlines while splitting the string. However, this would require more code, which seems unjustified for a simple (and fairly rare) block as *verse*. This fixes #2402.
* | [RST Writer] Don't normalize heading levels below input minimumNikolay Yakimov2015-09-19
|/
* Tests: docx writer tests now use "../data" for data directory.John MacFarlane2015-09-09
| | | | This allows tests to be run without installing first.
* Org reader: add auto identifiers if not present on headersJuliusz Gonera2015-08-15
| | | | | | | Refs #2354 This should also fix the table of contents (--toc) when generating a html file from org input
* Added odt readerMarLinn2015-07-23
| | | | | | | | | | | | | | | | | | | | | Fully implemented features: * Paragraphs * Headers * Basic styling * Unordered lists * Ordered lists * External Links * Internal Links * Footnotes, Endnotes * Blockquotes Partly implemented features: * Citations Very basic, but pandoc can't do much more * Tables No headers, no sizing, limited styling
* Updated tests and removed a skipSpaces....John MacFarlane2015-07-23
| | | | | we no longer need it with the change to toKey, and it is expensive to skip spaces after every inline.
* Markdown Reader: Add basic tests for each header styleOphir Lifshitz2015-07-23
|
* Markdown Reader: Add implicit header ref tests for headers with spacesOphir Lifshitz2015-07-23
|
* Fix regression: allow HTML comments containing `--`.John MacFarlane2015-07-21
| | | | | | | Technically this isn't allowed in an HTML comment, but we've always allowed it, and so do most other implementations. It is handy if e.g. you want to put command line arguments in HTML comments.
* Markdown reader: don't allow bare URI links or autolinks in link label.John MacFarlane2015-07-14
| | | | | | Added test cases. Closes #2300.
* Improved bare autolink detection.John MacFarlane2015-07-14
| | | | | | | | | | | | | | | | | | | Previously we disallowed `-` at the end of an autolink, and disallowed the combination `=-`. This commit liberalizes the rules for allowing punctuation in a bare URI. Added test cases. One potential drawback is that you can no longer put a bare URI in em dashes like this this uri---http://example.com---is an example. But in this respect we now match github's treatment of bare URIs. Closes #2299.
* Removed tabs from source.John MacFarlane2015-07-10
|
* Avoid parsing partial URLs as HTML tags.John MacFarlane2015-07-10
| | | | Closes #2277.
* Tests.Readers.RST: Test metadata with inline markup tooLars-Dominik Braun2015-07-03
|
* Tests.Readers.RST: Group field list testsLars-Dominik Braun2015-07-03
|
* Readers.RST: Parse field list nameLars-Dominik Braun2015-07-03
| | | | | | “Inline markup is parsed in field names.” [1] [1] http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#field-lists
* Fix RST reference names with special charactersLars-Dominik Braun2015-06-29
|
* Org reader: drop trees with a :noexport: tagAlbert Krewinkel2015-05-23
| | | | | Trees having a `:noexport:` tag set are not exported. This mirrors default Emacs Org-Mode behavior.
* Org reader: put header tags into empty spansAlbert Krewinkel2015-05-23
| | | | | | | | | | | | | | | Org mode allows headers to be tagged: ``` org-mode * Headline :TAG1:TAG2: ``` Instead of being interpreted as part of the headline, the tags are now put into the attributes of empty spans. Spans without textual content won't be visible by default, but they are detectable by filters. They can also be styled using CSS when written as HTML. This fixes #2160.
* HTML reader: Support base tag.John MacFarlane2015-05-13
| | | | | | | | | We only support the href attribute, as there's no place for "target" in the Pandoc document model for links. Added HTML reader test module, with tests for this feature. Closes #1751.
* Make sure a closing `</div>` doesn't get included in a defn list item.John MacFarlane2015-05-03
| | | | Closes #2127.
* Fixed regression with lists inside defintiion lists.John MacFarlane2015-04-26
| | | | | | | | | | This fixes a regression (not in any released version) on things like hi : - there Closes #2098.
* EPUB tests: don't use joinPath, which varies across platforms.John MacFarlane2015-04-22
| | | | | | | | Instead, use a forward-slash to join paths, regardless of the platform. This matches the way MediaBag now works. See https://github.com/jgm/pandoc/commit/56e4ecab20613d86a6660547ed87e7ff4b80d632#commitcomment-10858449
* MD Reader: Tests for links/footnotes after citationsNikolay Yakimov2015-04-20
| | | | In-text citation suffix clashes with links and footnotes
* Added test case for #2062.John MacFarlane2015-04-18
|
* Markdown writer: improved escaping.John MacFarlane2015-04-18
| | | | | | | | `<` should not be escaped as `\<`, for compatibility with original Markdown. We now escape `<` and `>` with entities. Also, we now backslash-escape square brackets. Closes #2086.
* Markdown definition lists: don't require indent for first line.John MacFarlane2015-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously the body of the definition (after the `:` or `~` marker) needed to be in column 4. This commit relaxes that requirement, to better match the behavior of PHP Markdown Extra. So, now this is a valid definition list: foo : bar This patch also helps resolve a potentially ambiguity with table captions: foo : bar ----- table ----- Is "bar" a definition, or the caption for the table? We'll count it as a caption for the table. Closes #2087.
* More principled fix for #1820.John MacFarlane2015-04-17
| | | | | | | | If the tag parses as a comment, we check to see if the input starts with `<!--`. If not, it's bogus comment mode and we fail htmlTag. Includes test case. Closes #1820.
* Merge branch 'latex-tightlist' of https://github.com/jlduran/pandoc into ↵John MacFarlane2015-04-17
|\ | | | | | | | | | | | | jlduran-latex-tightlist Conflicts: data/templates
| * LaTeX writer: Use a declaration for tight listsJose Luis Duran2014-09-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #1954 from mcmtroffaes/feature/citekey-firstchar-alphanumJohn MacFarlane2015-04-17
|\ \ | | | | | | Allow digit as first character of a citation key.
| * | Allow digit as first character of a citation key.Matthias C. M. Troffaes2015-02-18
| | | | | | | | | | | | | | | | | | | | | | | | * Update parser to recognize citation keys starting with a digit. * Update documentation accordingly. * Test case added. See https://github.com/jgm/pandoc-citeproc/issues/97
* | | Merge pull request #2079 from lierdakil/rst-normalize-headingsJohn MacFarlane2015-04-17
|\ \ \ | | | | | | | | RST Writer: Normalize headings to sequential levels
| * | | RST Writer: Tests for rubrics and heading normalizationNikolay Yakimov2015-04-16
| | | |
* | | | MD Reader: Test for smart `'` after inline mathNikolay Yakimov2015-04-18
|/ / /
* | | LaTeX Reader: Test for `^^` character escapesNikolay Yakimov2015-04-13
| | |
* | | Merge branch 'master' of https://github.com/rootzlevel/pandoc into ↵John MacFarlane2015-03-28
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | rootzlevel-master Conflicts: src/Text/Pandoc/Readers/Org.hs
| * | | Org reader: Add test for image linksHans-Peter Deifel2015-02-26
| | | | | | | | | | | | | | | | | | | | Tests for image links with non-image targets, as introduced in commit 2ca5101.
* | | | Merge branch 'errortype' of https://github.com/mpickering/pandoc into ↵John MacFarlane2015-03-28
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mpickering-errortype Conflicts: benchmark/benchmark-pandoc.hs src/Text/Pandoc/Readers/Markdown.hs src/Text/Pandoc/Readers/Org.hs src/Text/Pandoc/Readers/RST.hs tests/Tests/Readers/LaTeX.hs
| * | | | Update testsMatthew Pickering2015-02-18
| | |/ / | |/| |
* | | | Merge pull request #1968 from lierdakil/issue1607John MacFarlane2015-03-16
|\ \ \ \ | | | | | | | | | | Fixes for multiple docx writer style bugs.
| * | | | Docx Writer: Tables testNikolay Yakimov2015-03-08
| | | | |