aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
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.
2017-11-13LaTeX reader: allow optional arguments on `\footnote`.John MacFarlane1-0/+6
Closes #4062.
2017-11-13Markdown writer: fix bug with doubled footnotes in grid tables.John MacFarlane1-0/+14
Closes #4061.
2017-11-13Replace "emacs" extension with "amuse" extensionAlexander Krotov2-9/+7
It makes clear that extension is related to Muse markup.
2017-11-12LaTeX reader: support column specs like `*{2}{r}`.John MacFarlane1-1/+14
This is equivalent to `rr`. We now expand it like a macro. Closes #4056.
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.