summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* Use unicode super/subscripts for digits in plain output.John MacFarlane2015-10-15
|
* 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.
* Fixed tests for template changes.John MacFarlane2015-10-13
|
* 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.
* HTML reader/writer: better handling of "section" elements.John MacFarlane2015-10-11
| | | | | | | | | | Previously `<section>` tags were just parsed as raw HTML blocks. With this change, section elements are parsed as Div elements with the class "section". The HTML writer will use `<section>` tags to render these Divs in HTML5; otherwise they will be rendered as `<div class="section">`. Closes #2438.
* Removed xltxtra, xunicode from LaTeX template.John MacFarlane2015-10-10
| | | | | | Thanks Andrew Dunning. Updated tests and changelog.
* Merge pull request #2412 from frerich/reader/docbook/xref_supportJohn MacFarlane2015-10-10
|\ | | | | Added support for <xref> tag in DocBook reader
| * Improve text generated for <xref> by employing docbook-xsl heuristicsFrerich Raabe2015-09-24
| | | | | | | | | | | | | | docbook-xsl, a set of XSLT scripts to generate HMTL out of DocBook, tries harder to generate a nice xref text. Depending on the element being linked to, it looks at the title or other descriptive child elements. Let's do that, too.
| * 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.
* | Adjusted man writer test for latest template changes.John MacFarlane2015-10-10
| |
* | Merge pull request #2432 from hftf/hyphensJohn MacFarlane2015-10-04
|\ \ | | | | | | Docx Reader: Parse soft and non-breaking hyphen elements
| * | Docx Reader: Create special punctuation testOphir Lifshitz2015-10-04
| | |
* | | Updated tests for changes to latex template.John MacFarlane2015-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.
* Use real jpg (not empty) for docx tests to avoid warning.John MacFarlane2015-08-15
|
* RST reader: better handling of indirect roles.John MacFarlane2015-08-15
| | | | | | | | | | | | | | | | | | Previously the parser failed on this kind of case .. role:: indirect(code) .. role:: py(indirect) :language: python :py:`hi` Now it currectly recognizes `:py:` as a code role. The previous test for this didn't work, because the name of the indirect role was the same as the language defined its parent, os it didn't really test for this behavior. Updated test.
* Merge pull request #2360 from jg/issue-2354John MacFarlane2015-08-15
|\ | | | | Org reader: add auto identifiers if not present on headers
| * 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
* | EPUB reader: stop mangling external URLs.John MacFarlane2015-08-10
|/ | | | | | | Closes #2284. Note the changes to the test suite. In each case, a mangled external link has been fixed, so these are all positive.
* Updated html reader for new automatic header attributes.John MacFarlane2015-08-08
|
* MediaWiki reader: handle unquoted table attributes.John MacFarlane2015-08-08
| | | | Closes #2355.
* Merge pull request #2327 from hftf/list-styleJohn MacFarlane2015-08-07
|\ | | | | HTML Reader: Correctly parse inline list-style(-type) for <ol>
| * HTML Reader: Test <ol> type, class, and inline list-style(-type) CSSOphir Lifshitz2015-07-24
| |
* | Pipe tables: allow indented columns.John MacFarlane2015-07-27
| | | | | | | | | | | | | | | | | | | | Previously the left-hand column could not start with 4 or more spaces indent. This was inconvenient for right-aligned left columns. Note that the first (header column) must still have 3 or fewer spaces indentation, or the table will be treated as an indented code block.
* | 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.
* HTML reader: handle type attribute on ol.John MacFarlane2015-07-21
| | | | | | E.g. `<ol type="i">`. Closes #2313.
* Merge pull request #2303 from hftf/h6John MacFarlane2015-07-15
|\ | | | | Add missing Heading 6 style in reference Docx
| * Docx Reader: Updated headers testOphir Lifshitz2015-07-15
| | | | | | | | | | | | | | Replaced styles.xml in headers.docx with pandoc's current styles.xml, which contains styles for Heading 1 through 6. Added Heading 4 through 7 to the test document. Note that Heading 7 is not parsed as a Heading because there is no Heading 7 style.
* | 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.
* | DokuWiki: write $..$ instead of <math>..</math>Tiziano Müller2015-07-13
| | | | | | | | | | MathJax seems currently to be the only maintained math rendering extension for DokuWiki and it uses $..$ instead of <math>..</math>.
* | Removed tabs from source.John MacFarlane2015-07-10
| |
* | Avoid parsing partial URLs as HTML tags.John MacFarlane2015-07-10
| | | | | | | | Closes #2277.
* | Merge pull request #2266 from PromyLOPh/fieldinlineJohn MacFarlane2015-07-08
|\ \ | | | | | | RST: Support inline markup for field list names
| * | 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
* | Fixed email javascript obfuscation with mailto: URLs.John MacFarlane2015-07-07
| | | | | | | | | | | | | | | | | | | | This fixes a potential security issue. Because single quotes weren't being escaped in the link portion, a specially crafted email address could allow javascript code injection. [Jim'+alert('hi')+'OBrien](mailto:me@example.com) Closes #2280.
* | Updated context writer test.John MacFarlane2015-07-06
|/
* Do not add a carriage return after a hard line break in OpenDocument writer ↵Michael Chladek2015-07-01
| | | | and reflect change in tests.
* Fix RST reference names with special charactersLars-Dominik Braun2015-06-29
|