aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2015-10-25Template improvements (Andrew Dunning).John MacFarlane3-9/+12
- Added `keywords` to HTML templates and fixed alignment. - Updated dzslides template from source. - Added `lang`, `dir`, `quotes` to HTML templates; always make author and date display conditional. - Fixed `author` and `date` in asciidoc; added `keywords`, `abstract`. - Updated tests.
2015-10-25Merge pull request #2477 from tarleb/org-toggling-header-argsJohn MacFarlane1-0/+19
Org reader: allow toggling header args
2015-10-25Org reader: allow toggling header argsAlbert Krewinkel1-0/+19
Org-mode allows to skip the argument of a code block header argument if it's toggling a value. Argument-less headers are now recognized, avoiding weird parsing errors. The fixes are not exactly pretty, but neither is the code that was fixed. So I guess it's about par for the course. However, a rewrite of the header parsing code wouldn't hurt in the long run. Thanks to @jo-tham for filing the bug report. This fixes #2269.
2015-10-24Org reader: fix paragraph/list interactionAlbert Krewinkel1-0/+8
Paragraphs can be followed by lists, even if there is no blank line between the two blocks. However, this should only be true if the paragraph is not within a list, were the preceding block should be parsed as a plain instead of paragraph (to allow for compact lists). Thanks to @rgaiacs for bringing this up. This fixes #2464.
2015-10-22Fixed over-eager raw HTML inline parsing.John MacFarlane1-0/+3
Tightened up the inline HTML parser so it disallows TagWarnings. This only affects the markdown reader when the `markdown_in_html_blocks` option is disabled. Closes #2469.
2015-10-20Updated tests for latex/context template changes.John MacFarlane6-161/+87
2015-10-19Fixed one test case.John MacFarlane1-1/+1
2015-10-19Merge pull request #2458 from mb21/lang-inlinesJohn MacFarlane5-0/+309
LaTeX and ConTeXt writers: support lang attribute on divs and spans
2015-10-18Updated tests for template changes.John MacFarlane3-3/+3
2015-10-18Tests: Unset `pandoc-version` so we don't get the comment...John MacFarlane2-3/+2
in the man writer test. Otherwise this needs updating every version bump.
2015-10-18Added writers-lang-and-dir test, fixed ConTeXt writer testmb215-0/+309
The writers-lang-and-dir testGroup tests LaTeX and ConTeXt writers' language and directionality output
2015-10-15Use unicode super/subscripts for digits in plain output.John MacFarlane1-2/+2
2015-10-14Use custom Prelude to avoid compiler warnings.John MacFarlane8-8/+0
- 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.
2015-10-13Fixed tests for template changes.John MacFarlane3-5/+7
2015-10-12RST writer: do header normalization only in "standalone" mode.John MacFarlane1-8/+13
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.
2015-10-11Percent-encode more special characters in URLs.John MacFarlane1-2/+4
HTML, LaTeX writers adjusted. The special characters are '<','>','|','"','{','}','[',']','^', '`'. Closes #1640, #2377.
2015-10-11HTML reader/writer: better handling of "section" elements.John MacFarlane5-559/+1451
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.
2015-10-10Removed xltxtra, xunicode from LaTeX template.John MacFarlane3-3/+0
Thanks Andrew Dunning. Updated tests and changelog.
2015-10-10Merge pull request #2412 from frerich/reader/docbook/xref_supportJohn MacFarlane3-0/+101
Added support for <xref> tag in DocBook reader
2015-10-10Adjusted man writer test for latest template changes.John MacFarlane1-0/+3
2015-10-04Merge pull request #2432 from hftf/hyphensJohn MacFarlane3-0/+6
Docx Reader: Parse soft and non-breaking hyphen elements
2015-10-04Updated tests for changes to latex template.John MacFarlane3-3/+27
2015-10-04Docx Reader: Create special punctuation testOphir Lifshitz3-0/+6
2015-09-26MediaBag: ensure that / is always used as path separator.John MacFarlane1-1/+1
2015-09-24Improve text generated for <xref> by employing docbook-xsl heuristicsFrerich Raabe1-3/+3
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.
2015-09-24Added proper support for DocBook 'xref' elementsFrerich Raabe3-0/+101
'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.
2015-09-20Merge pull request #2406 from tarleb/org-verse-fixJohn MacFarlane1-0/+9
Make sure verse blocks can contain empty lines
2015-09-19Make sure verse blocks can contain empty linesAlbert Krewinkel1-0/+9
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.
2015-09-19[RST Writer] Don't normalize heading levels below input minimumNikolay Yakimov1-0/+25
2015-09-09Tests: docx writer tests now use "../data" for data directory.John MacFarlane1-1/+4
This allows tests to be run without installing first.
2015-08-15Use real jpg (not empty) for docx tests to avoid warning.John MacFarlane3-0/+0
2015-08-15RST reader: better handling of indirect roles.John MacFarlane2-3/+3
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.
2015-08-15Merge pull request #2360 from jg/issue-2354John MacFarlane1-20/+38
Org reader: add auto identifiers if not present on headers
2015-08-15Org reader: add auto identifiers if not present on headersJuliusz Gonera1-20/+38
Refs #2354 This should also fix the table of contents (--toc) when generating a html file from org input
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-08-07Updated tests for link attribute changes.mb2124-240/+240
2015-08-07Updated Arbitrary instance for link attributemb211-2/+3
2015-08-07Updated tests for image attribute changes.John MacFarlane22-96/+64
2015-08-07Updated Arbitrary instance for new image attribute parameter.John MacFarlane1-2/+3
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.