aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2015-08-10EPUB reader: stop mangling external URLs.John MacFarlane2-7/+7
Closes #2284. Note the changes to the test suite. In each case, a mangled external link has been fixed, so these are all positive.
2015-08-08Updated html reader for new automatic header attributes.John MacFarlane1-33/+33
2015-08-08MediaWiki reader: handle unquoted table attributes.John MacFarlane1-1/+1
Closes #2355.
2015-08-07Merge pull request #2327 from hftf/list-styleJohn MacFarlane2-0/+20
HTML Reader: Correctly parse inline list-style(-type) for <ol>
2015-07-27Pipe tables: allow indented columns.John MacFarlane2-1/+16
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.
2015-07-24HTML Reader: Test <ol> type, class, and inline list-style(-type) CSSOphir Lifshitz2-0/+20
2015-07-23Added odt readerMarLinn63-0/+219
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
2015-07-23Updated tests and removed a skipSpaces....John MacFarlane1-6/+6
we no longer need it with the change to toKey, and it is expensive to skip spaces after every inline.
2015-07-23Markdown Reader: Add basic tests for each header styleOphir Lifshitz1-0/+10
2015-07-23Markdown Reader: Add implicit header ref tests for headers with spacesOphir Lifshitz1-0/+20
2015-07-21Fix regression: allow HTML comments containing `--`.John MacFarlane1-0/+3
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.
2015-07-21HTML reader: handle type attribute on ol.John MacFarlane1-2/+2
E.g. `<ol type="i">`. Closes #2313.
2015-07-15Merge pull request #2303 from hftf/h6John MacFarlane2-1/+9
Add missing Heading 6 style in reference Docx
2015-07-15Docx Reader: Updated headers testOphir Lifshitz2-1/+9
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.
2015-07-14Markdown reader: don't allow bare URI links or autolinks in link label.John MacFarlane1-1/+12
Added test cases. Closes #2300.
2015-07-14Improved bare autolink detection.John MacFarlane1-0/+4
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.
2015-07-13DokuWiki: write $..$ instead of <math>..</math>Tiziano Müller1-7/+7
MathJax seems currently to be the only maintained math rendering extension for DokuWiki and it uses $..$ instead of <math>..</math>.
2015-07-10Removed tabs from source.John MacFarlane1-3/+3
2015-07-10Avoid parsing partial URLs as HTML tags.John MacFarlane1-0/+3
Closes #2277.
2015-07-08Merge pull request #2266 from PromyLOPh/fieldinlineJohn MacFarlane1-16/+38
RST: Support inline markup for field list names
2015-07-07Fixed email javascript obfuscation with mailto: URLs.John MacFarlane1-1/+1
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.
2015-07-06Updated context writer test.John MacFarlane1-1/+1
2015-07-03Tests.Readers.RST: Test metadata with inline markup tooLars-Dominik Braun1-4/+6
2015-07-03Tests.Readers.RST: Group field list testsLars-Dominik Braun1-24/+26
2015-07-03Readers.RST: Parse field list nameLars-Dominik Braun1-2/+20
“Inline markup is parsed in field names.” [1] [1] http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#field-lists
2015-07-01Do not add a carriage return after a hard line break in OpenDocument writer ↵Michael Chladek1-2/+1
and reflect change in tests.
2015-06-29Fix RST reference names with special charactersLars-Dominik Braun1-0/+4
2015-06-27Textile writer: escape `+` and `-` as entities.John MacFarlane1-8/+8
Closes #2225.
2015-06-27Plain writer: don't use symbols for super/subscript.John MacFarlane1-3/+3
Simplified code by using plainExtensions from Options. Closes #2237.
2015-06-27Updated latex writer tests for last template change.John MacFarlane3-0/+3
2015-06-21DocBook reader mediaobjects and figures, closes #2184mb212-4/+23
2015-06-09Fixed tests/docx/links.docx for new url.John MacFarlane1-0/+0
2015-06-09replace old url with pandoc.orgPablo Rodríguez6-6/+6
2015-06-09Fix InDesign crash with URLs containing more than one colon charactergohai1-18/+18
Colons are valid characters in URLs, and used e.g. by the Internet Archive's Wayback Machine - a popular resource amongst researchers. When InDesign encounters a HyperlinkURLDestination with more than one colon character in it, it crashes when placing the ICML. (This was tested against CS6.) The IDML specification hints at this requirement in section 6.4.1: "The colon apppears in the Name attribute of the style, but is encoded as %3a when it appears in the Self attribute". Follow this example for all colon characters in URLs.
2015-06-07DokuWiki writer: Use proper `<code>` tags for code blocks.John MacFarlane1-15/+37
Closes #2213.
2015-05-27LaTeX template: Move hyperref before polyglossia.John MacFarlane3-30/+30
This avoids an error "Please load package hyperref before bidi package, and then try to run xelatex on your document again". See jgm/pandoc-templates #96.
2015-05-26Merge pull request #2169 from tarleb/org-header-tagsJohn MacFarlane1-4/+26
Org reader: put header tags into empty spans
2015-05-26Merge pull request #2141 from DigitalPublishingToolkit/icml-imagesJohn MacFarlane1-2/+2
Fix image URIs in ICML output
2015-05-26Updated tests for new highlighting-kate.John MacFarlane3-25/+76
2015-05-23Org reader: drop trees with a :noexport: tagAlbert Krewinkel1-0/+7
Trees having a `:noexport:` tag set are not exported. This mirrors default Emacs Org-Mode behavior.
2015-05-23Org reader: put header tags into empty spansAlbert Krewinkel1-4/+19
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.
2015-05-13Markdown reader: Made implicit header references case-insensitive.John MacFarlane2-0/+3
Added `stateHeaderKeys` to `ParserState`; this is a `KeyTable` like `stateKeys`, but it only gets consulted if we don't find a match in `stateKeys`, and if `Ext_implicit_header_references` is enabled. Closes #1606.
2015-05-13HTML reader: Support base tag.John MacFarlane2-0/+29
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.
2015-05-13Fixed regression in charsInBalancedBrackets.John MacFarlane2-0/+6
Introduced by e9d7504. This regression caused link and image references containing raw tex not to parse correctly. Added test. Closes #2150.
2015-05-11Fix image URIs in ICML output (v2)gohai1-2/+2
InDesign expects LinkResourceURI to start with "file:" for local filenames, and won't render/link the image without.
2015-05-04Test updates for 15d16e84567ca74c18448c60a2499e484581798f.John MacFarlane3-0/+12
2015-05-03Make sure a closing `</div>` doesn't get included in a defn list item.John MacFarlane1-0/+4
Closes #2127.
2015-05-02Fixed tests for change to latex template.John MacFarlane3-3/+3
2015-04-26Fixed regression with lists inside defintiion lists.John MacFarlane1-0/+3
This fixes a regression (not in any released version) on things like hi : - there Closes #2098.
2015-04-22EPUB tests: don't use joinPath, which varies across platforms.John MacFarlane1-2/+5
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