aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2017-12-13Docx writer: Add tests for list continuation.Jesse Rosenthal5-0/+23
2017-12-12Markdown: Improved computation of relative cell widths in pipe tables.John MacFarlane2-4/+4
2017-12-12Pipe tables: use full text width for tables with wrapping cells.John MacFarlane1-1/+1
Previously we computed the column sizes based on the ratio between the header lines and the text width (as set by `--columns`). This meant that tables with very short header lines would be very narrow. With this change, pipe tables with wrapping cells will always take up the whole text width. The relative column widths will still be determined by the ratio of header lines, but they will be normalized to add up to 1.0.
2017-12-10Changes for skylighting-0.5.John MacFarlane3-76/+96
This fixes a bug in 2.0.4, whereby pandoc could not read the theme files generated with `--print-highlight-style`. It also fixes some CSS issues involving line numbers. Highlighted code blocks are now enclosed in a div with class sourceCode. Highlighting CSS no longer sets a generic color for pre and code; we only set these for class `sourceCode`. This will close #4133 and #4128.
2017-12-08LaTeX reader: fix \ before newline.John MacFarlane1-0/+25
This should be a nonbreaking space, as long as it's not followed by a blank line. This has been fixed at the tokenizer level. Closes #4134.
2017-12-06Markdown reader: accept processing instructions as raw HTML.John MacFarlane1-0/+6
Closes #4125.
2017-12-02Lua filters: refactor lua module handlingAlbert Krewinkel1-13/+11
The integration with Lua's package/module system is improved: A pandoc-specific package searcher is prepended to the searchers in `package.searchers`. The modules `pandoc` and `pandoc.mediabag` can now be loaded via `require`.
2017-12-06hlint Muse reader and testsAlexander Krotov1-4/+4
2017-12-06Muse reader: add test for #disable-tables directive in Emacs modeAlexander Krotov1-7/+13
2017-12-06Muse reader: don't allow emphasis to be preceded by letterAlexander Krotov1-0/+4
2017-12-04Rewrite empty_paragraphs test so it will run on Windows.John MacFarlane1-4/+4
2017-12-04Markdown reader: Don't parse native div as table caption.John MacFarlane1-0/+18
Closes #4119.
2017-12-04Add `empty_paragraphs` extension.John MacFarlane7-46/+115
* Deprecate `--strip-empty-paragraphs` option. Instead we now use an `empty_paragraphs` extension that can be enabled on the reader or writer. By default, disabled. * Add `Ext_empty_paragraphs` constructor to `Extension`. * Revert "Docx reader: don't strip out empty paragraphs." This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b. * Implement `empty_paragraphs` extension in docx reader and writer, opendocument writer, html reader and writer. * Add tests for `empty_paragraphs` extension.
2017-12-04Muse reader: add underline support in Emacs Muse modeAlexander Krotov1-0/+4
2017-12-03Include default CSS for 'underline' class in HTML-based templates.John MacFarlane7-0/+7
2017-12-03Test for #4113.John MacFarlane1-0/+12
Closes #4113.
2017-12-02Docx reader: don't strip out empty paragraphs.John MacFarlane4-16/+38
We now have the `--strip-empty-paragraphs` option for that, if you want it. Closes #2252. Updated docx reader tests. We use stripEmptyParagraphs to avoid changing too many tests. We should add new tests for empty paragraphs.
2017-12-01LaTeX writer: allow specifying just width or height for image size.John MacFarlane1-1/+1
Previously both needed to be specified (unless the image was being resized to be smaller than its original size). If height but not width is specified, we now set width to textwidth (and similarly if width but not height is specified). Since we have keepaspectratio, this yields the desired result.
2017-12-01Revert "LaTeX writer: Add keepaspectratio to includegraphics..."John MacFarlane1-1/+1
This reverts commit 171187a4527497701b3c77bd56cea2d770d4e3b0.
2017-11-30LaTeX writer: Add keepaspectratio to includegraphics...John MacFarlane1-1/+1
...if only one of height/width is given.
2017-11-29Support beamer `\alert` in LaTeX reader. Closes #4091.John MacFarlane1-0/+6
2017-11-29Muse reader: correctly remove indentation from notesAlexander Krotov1-0/+8
Exactly one space is required and considered to be part of the marker.
2017-11-28Temporarily disable round-trip block test for muse reader.John MacFarlane1-4/+6
See #4107.
2017-11-28Update tests for new skylighting.John MacFarlane2-4/+8
2017-11-27Muse reader: parse "~~" as non-breaking space in Emacs modeAlexander Krotov1-0/+3
2017-11-27Muse reader: make code blocks round tripAlexander Krotov1-5/+25
2017-11-26Muse reader: drop common space prefix from list itemsAlexander Krotov1-0/+18
2017-11-26Muse reader: Add partial round trip testAlexander Krotov1-1/+28
2017-11-25Muse reader: don't interpret XML entitiesAlexander Krotov1-0/+2
2017-11-24Muse reader: parse markup in definition list termsAlexander Krotov1-0/+2
2017-11-24Muse reader: allow definition to end with EOFAlexander Krotov1-0/+2
2017-11-24Muse writer: test that inline math conversion result is normalizedAlexander Krotov1-0/+1
Without normalization this test produced <em>a</em><em>b</em><em>c</em>
2017-11-24Muse: move inline list normalization to writerAlexander Krotov2-2/+1
2017-11-22Org reader: allow empty list itemsAlbert Krewinkel1-0/+12
Fixes: #4090
2017-11-22Muse reader: allow list items to be emptyAlexander Krotov1-0/+21
2017-11-22Muse reader: add ordered list testAlexander Krotov1-12/+24
2017-11-22Muse writer: escape hash symbolAlexander Krotov2-1/+3
2017-11-22Muse reader: add more multiline definition testsAlexander Krotov1-0/+25
2017-11-21Update tests for skylighting changes.John MacFarlane2-14/+14
2017-11-22Muse writer: escape "----" to avoid accidental horizontal rulesAlexander Krotov1-0/+1
2017-11-22Muse reader: concatenate inlines of the same typeAlexander Krotov1-0/+2
2017-11-22Muse writer: escape only </code> inside code tagAlexander Krotov3-11/+9
Additional <verbatim> is not needed as <code> is verbatim already.
2017-11-21Muse reader: add inline <literal> supportAlexander Krotov1-0/+9
2017-11-21Muse reader: test <literal> blocksAlexander Krotov1-0/+14
2017-11-20data/pandoc.lua: enable table-like behavior of attributes (#4080)Albert Krewinkel2-3/+17
Attribute lists are represented as associative lists in Lua. Pure associative lists are awkward to work with. A metatable is attached to attribute lists, allowing to access and use the associative list as if the attributes were stored in as normal key-value pair in table. Note that this changes the way `pairs` works on attribute lists. Instead of producing integer keys and two-element tables, the resulting iterator function now returns the key and value of those pairs. Use `ipairs` to get the old behavior. Warning: the new iteration mechanism only works if pandoc has been compiled with Lua 5.2 or later (current default: 5.3). The `pandoc.Attr` function is altered to allow passing attributes as key-values in a normal table. This is more convenient than having to construct the associative list which is used internally. Closes #4071
2017-11-19Muse reader: count only one space as part of list item markerAlexander Krotov1-22/+36
2017-11-19Muse reader: produce SoftBreaks on newlinesAlexander Krotov1-13/+13
Now wrapping can be preserved with --wrap=preserve
2017-11-18Lua filters: preload text module (#4077)Albert Krewinkel2-3/+18
The `text` module is preloaded in lua. The module contains some UTF-8 aware string functions, implemented in Haskell. The module is loaded on request only, e.g.: text = require 'text' function Str (s) s.text = text.upper(s.text) return s end
2017-11-18Muse reader: Add Text::Amuse footnote extensionsAlexander Krotov1-0/+37
Footnote end is indicated by indentation, so footnotes can be placed anywhere in the text, not just at the end of it.
2017-11-14Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters.John MacFarlane1-0/+9
This fixes a bug where pandoc would stop parsing a URI with an empty attribute: for example, `&a=&b=` wolud stop at `a`. (The uri parser tries to guess which punctuation characters are part of the URI and which might be punctuation after it.) Closes #4068.