summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* Updated tests for template changes.John MacFarlane2015-11-12
|
* Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* Merge pull request #2505 from tarleb/org-header-markup-fixJohn MacFarlane2015-11-08
|\ | | | | Org reader: fix markup parsing in headers
| * Org reader: fix markup parsing in headersAlbert Krewinkel2015-11-08
| | | | | | | | | | | | | | | | | | | | Markup as the very first item in a header wasn't recognized. This was caused by an incorrect parser state: positions at which inline markup can start need to be marked explicitly by changing the parser state. This wasn't done for headers. The proper function to update the state is now called at the beginning of the header parser, fixing this issue. This fixes #2504.
* | Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
|/ | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* Pipe tables with long lines now get relative cell widths.John MacFarlane2015-10-30
| | | | | | | | | | | | | | | | | If a pipe table contains a line longer than the column width (as set by `--columns` or 80 by default), relative widths are computed based on the widths of the separator lines relative to the column width. This should solve persistent problems with long pipe tables in LaTeX/PDF output, and give more flexibility for determining relative column widths in other formats, too. For narrower pipe tables, column widths of 0 are used, telling pandoc not to specify widths explicitly in output formats that permit this. Closes #2471.
* HTML writer: use width on whole table if col widths sum to < 100%.John MacFarlane2015-10-30
| | | | | Otherwise some browsers display the table with the columns separated far apart.
* Textile reader: don't do smart punctuation unless explicitly asked.John MacFarlane2015-10-30
| | | | | | | | Closes #2480. Note that although smart punctuation is part of the textile spec, it's not always wanted when converting from textile to, say, Markdown. So it seems better to make this an option.
* LaTeX writer: add `\protect` to `\hyperlink`.John MacFarlane2015-10-28
| | | | | | Thanks to Hadrien Mary for the problem and solution. Closes #2490.
* LaTeX writer: Use `\hypertarget` and `\hyperlink` for links.John MacFarlane2015-10-27
| | | | | | | | This works correctly to link to Div or Span elements. We now don't bother defining `\label` for Div or Span elements. Closes jgm/pandoc-citeproc#174.
* Template improvements (Andrew Dunning).John MacFarlane2015-10-25
| | | | | | | | | - 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.
* Merge pull request #2477 from tarleb/org-toggling-header-argsJohn MacFarlane2015-10-25
|\ | | | | Org reader: allow toggling header args
| * Org reader: allow toggling header argsAlbert Krewinkel2015-10-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Org reader: fix paragraph/list interactionAlbert Krewinkel2015-10-24
|/ | | | | | | | | | | 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.
* Fixed over-eager raw HTML inline parsing.John MacFarlane2015-10-22
| | | | | | | | | | 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.
* Updated tests for latex/context template changes.John MacFarlane2015-10-20
|
* Fixed one test case.John MacFarlane2015-10-19
|
* Merge pull request #2458 from mb21/lang-inlinesJohn MacFarlane2015-10-19
|\ | | | | LaTeX and ConTeXt writers: support lang attribute on divs and spans
| * Added writers-lang-and-dir test, fixed ConTeXt writer testmb212015-10-18
| | | | | | | | | | The writers-lang-and-dir testGroup tests LaTeX and ConTeXt writers' language and directionality output
* | Updated tests for template changes.John MacFarlane2015-10-18
| |
* | Tests: Unset `pandoc-version` so we don't get the comment...John MacFarlane2015-10-18
|/ | | | | in the man writer test. Otherwise this needs updating every version bump.
* 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.