aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2017-11-12LaTeX reader: allow optional args for parbox.John MacFarlane1-0/+11
See #4056.
2017-11-12Muse reader: accept Emacs Muse definition listsAlexander Krotov1-0/+12
Emacs Muse does not require indentation.
2017-11-11Fixed YAML metadata with "chomp" (`|-`).John MacFarlane1-0/+12
Previously if a YAML block under `|-` contained a blank line, pandoc would not parse it as metadata.
2017-11-09Allow fenced code blocks to be indented 1-3 spaces.John MacFarlane1-0/+20
This brings our handling of them into alignment with CommonMark's. Closes #??.
2017-11-08Fix regression with --metadata.John MacFarlane1-0/+14
It should replace a metadata value set in the document itself, rather than creating a list including a new value. Closes #4054.
2017-11-04Fix test output for latest skylighting.John MacFarlane2-6/+6
2017-11-04Revert "Better indentation under headers in org mode output."John MacFarlane1-406/+410
This reverts commit 1a81751cef330d875cc34f11cde4a0d478969db7.
2017-11-04Better indentation under headers in org mode output.John MacFarlane1-410/+406
See #4036. Close examination by org experts needed, to ensure that nothing breaks.
2017-11-04Fix strikethrough in gfm writer.John MacFarlane1-0/+6
Previously we got a crash, because we were trying to print a native cmark STRIKETHROUGH node, and the commonmark writer in cmark-github doesn't support this. Work around this by using a raw node to add the strikethrough delimiters. Closes #4038.
2017-11-04Test case change for texmath 0.10.John MacFarlane1-2/+2
2017-11-03Updated tests.John MacFarlane2-2/+2
2017-11-02Improved support for columns in HTML.John MacFarlane8-24/+24
* Move as much as possible to the CSS in the template. * Ensure that all the HTML-based templates (including epub) contain the CSS for columns. * Columns default to 50% width unless they are given a width attribute. Closes #4028.
2017-11-02Use latest skylighting; ensure no duplicate ids on code lines.John MacFarlane2-6/+6
The line identifiers are built using the code block's identifier as a prefix. If the code block has null identifier, we use "cb1", "cb2", etc. Closes #4031.
2017-11-02Fixed revealjs slide column width issues.John MacFarlane1-5/+3
* Remove "width" attribute which is not allowed on div. * Remove space between `<div class="column">` elements, since this prevents columns whose widths sum to 100% (the space takes up space). Closes #4028.
2017-11-01Really fix #3989.John MacFarlane1-1/+1
The previous fix only worked in certain cases. Other cases with `>` in an HTML attribute broke.
2017-11-01Updated command test for #3989.John MacFarlane1-5/+3
We didn't fix it completely before.
2017-11-01FB2 writer: Add "unrecognised" genre to <title-info>Alexander Krotov8-7/+8
XML schema requires at least one genre.
2017-11-01FB2 writer: remove <annotation> from <body>Alexander Krotov8-12/+7
<annotation> is not allowed inside <body> according to FictionBook2 XML schema. Besides that, the same information is already placed inside <description>. Related bug: #2424
2017-11-01Merge pull request #4009 from mb21/html-class-namesJohn MacFarlane4-18/+18
HTML Writer: consistently use dashed class-names
2017-11-01Merge pull request #4008 from labdsf/fb2-bulletsJohn MacFarlane1-10/+10
FB2 writer: make bullet lists consistent with ordered lists
2017-11-01Merge pull request #4001 from labdsf/fb2-testsJohn MacFarlane2-0/+36
Add new style FB2 tests
2017-10-31Properly pass through author metadata in JATS writer.John MacFarlane1-0/+12
Closes #4020.
2017-10-31Fixed regression in parsing of HTML comments in markdown...John MacFarlane1-0/+8
and other non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`). The parser stopped at the first `>` character, even if it wasn't the end of the comment. Closes #4019.
2017-11-01Merge pull request #4018 from swilde/creole-fixesJohn MacFarlane1-1/+14
Creole Reader: fix lists with triling white space
2017-10-31Creole reader: additional test on nowiki-block after para.Sascha Wilde1-1/+4
2017-10-31Add Millimeter constructor to Dimension in ImageSize.John MacFarlane1-0/+8
Minor API change. Now sizes given in 'mm' are no longer converted to 'cm'. Closes #4012.
2017-10-31LaTeX reader: handle `%` comment right after command.John MacFarlane2-0/+54
For example \emph% {hi}
2017-10-31Markdown reader: make sure fenced div closers work in lists.John MacFarlane1-1/+0
Previously the following failed: ::: {.class} 1. one 2. two ::: and you needed a blank line before the closing `:::`.
2017-10-31Make `fenced_divs` affect the Markdown writer.John MacFarlane1-3/+2
If `fenced_divs` is enabled, fenced divs will be used.
2017-10-31Creole reader: fixed lists with trailing white space.Sascha Wilde1-0/+10
2017-10-31FB2 writer: write blocks outside of <p> in definitionsAlexander Krotov1-34/+36
2017-10-31HTML Writer: consistently use dashed class-namesmb214-18/+18
see #3556
2017-10-31FB2 writer: make bullet lists consistent with ordered listsAlexander Krotov1-10/+10
Previously bullet lists interacted in odd way with ordered lists. For example, bullet lists nested in ordered list had incorrect indentation. Besides that, indentation with spaces is not rendered by FBReader and fbless. To avoid this problem, bullet lists are indented by appending bullets to marker just the same way it is done for ordered lists.
2017-10-30Added failing command test for #4007.John MacFarlane1-0/+23
2017-10-29Export all of Text.Pandoc.Class from Text.Pandoc.John MacFarlane2-2/+0
2017-10-29Write FB2 lists without nesting blocks inside <p> (#4004)Alexander2-83/+87
According to FB2 XML schema <empty-line /> cannot be placed inside <p>. Linux FBReader can't display such paragraphs, e.g. any "loose" lists produced by pandoc prior to this commit. Besides that, FB2 writer placed <p> inside <p> when writing nested lists, this commit fixes the bug. Also this commit removes leading non-breaking space from ordered lists for consistency with bullet lists. Definition lists are not affected at all.
2017-10-29Creole reader (#4002)Sascha Wilde3-0/+236
* Basic skeleton for creole reader. No real functionality besides preliminary bold and italics yet. * Creole: add support for bold/italic with implicit end at paragraph end. * Creole: add support for headings. * Creole: add support for tilde escaped chars. * Basic skeleton for creole reader. No real functionality besides preliminary bold and italics yet. * Creole: add support for bold/italic with implicit end at paragraph end. * Creole: add support for headings. * Creole: add support for tilde escaped chars. * Add a test suite for the creole parser So far this covers only things the parser already supports. * Added simple parsing of flat unordered lists. * Added tests for unordered lists in creole. * First, wrong(!) implementation of sublists. Fails test, as sublists should not be embedded in a list item! * Implementation of unordered sublists. * Added support for ordered lists to creole reader. * Added utility function to append parsers to Creole reader. * Creole reader: Fixed list item end detection in sub lists. * Tests for creole reader: added more tests for lists. Covering ordered and unordered tests, even mixed. Tests for formatting in list items still missing... * Added "nowiki" blocks. One exception rule is missing... * Creole reader: nowiki: implemented exception for curly brackets. * Creole reader: added inline nowiki. * Creole reader: added horizontalRule. * Creole reader: added auto linking of URIs. * Creole reader: detect horizontalRule as para end. Used the opportunity for a little refactoring. * Creole reader: added forced line breaks. Including test. * Creole reader: implement wiki links. * Creole reader: added image support. * Creole reader: support images as links. * Creole reader: implemented placeholder -- by simply dropping them. * Creole reader: added tests for links. After observing a regression, it was really time... ;-) * Creole reader: fixed links with names. * Creole reader: allow space after first of enclosing tags. Space after the start of formatting tags are allowed with creole, e.g. "there is // italic text // in here" is legal. This problem was discovered using the creole1.0test.txt document from http://www.wikicreole.org/wiki/Creole1.0TestCases See l.57: # // italic item 3 // * Creole reader: fixed links without names. * Creole reader: Tests, sorted into groups. * Creole reader: implemented tables. * Removed redundant import. * Creole reader: add correct escaping of links. * Creole reader: allow handling of e.g. links in parenthesis and quotes. * Creole reader: Modified disclaimer as most of the code is actually by me. * Creole reader: Tests: added escaped links. * Creole reader: preserve leading and trailing space in bold/italic. * Creole reader: detect tables without a leading blank line. * Creole Reader: added official creole1.0test.txt as "old" test. The base document was downloaded from http://www.wikicreole.org/wiki/Creole1.0TestCases. The Wiki, and therefore the test document is Copyright (C) by the contributors. Some rights reserved, license CC BY-SA. http://creativecommons.org/licenses/by-sa/1.0/
2017-10-28Add new style FB2 testsAlexander Krotov2-0/+36
2017-10-27Automatic reformating by stylish-haskell.John MacFarlane10-31/+31
2017-10-27Removed old adjacent_links test for docx reader.John MacFarlane3-5/+0
See #2270 for background -- this test blocked the consistent underline change and was hard to revise, so for now we are removing it.
2017-10-27Consistent underline for Readers (#2270)hftf8-6/+17
* Added underlineSpan builder function. This can be easily updated if needed. The purpose is for Readers to transform underlines consistently. * Docx Reader: Use underlineSpan and update test * Org Reader: Use underlineSpan and add test * Textile Reader: Use underlineSpan and add test case * Txt2Tags Reader: Use underlineSpan and update test * HTML Reader: Use underlineSpan and add test case
2017-10-26Creole reader (#3994)Sascha Wilde2-0/+275
This is feature complete but not very thoroughly tested yet.
2017-10-26Use skylighting 0.4.2.John MacFarlane2-12/+10
This prevents the problem with extra space around highlighted code blocks (closes #3996). Note that we no longer put an enclosing div around highlighted code blocks. The pre is the outer element, just as for unhighlighted blocks.
2017-10-24Fenced divs: ensure that paragraph at end doesn't become Plain.John MacFarlane1-1/+14
Added test case.
2017-10-23Back to using [WARNING] and [INFO] to mark messages.John MacFarlane3-5/+5
2017-10-23Implemented fenced Divs.John MacFarlane1-0/+30
+ Added Ext_fenced_divs to Extensions (default for pandoc Markdown). + Document fenced_divs extension in manual. + Implemented fenced code divs in Markdown reader. + Added test. Closes #168.
2017-10-23HTML reader: `htmlTag` improvements.John MacFarlane1-0/+9
We previously failed on cases where an attribute contained a `>` character. This patch fixes the bug. Closes #3989.
2017-10-23More pleasing presentation of warnings and info messages.John MacFarlane3-5/+5
!! warning -- info
2017-10-23Fixed test for change in log level.John MacFarlane1-3/+0
2017-10-22LaTeX Reader: support \lettrinemb211-0/+9