aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2017-12-22Improve support for code language in JATSHamish Mackenzie2-1/+11
2017-12-20Add Basic JATS reader based on DocBook readerHamish Mackenzie5-0/+2310
2017-12-19Muse writer: don't wrap note references to the next lineAlexander Krotov1-0/+29
Closes #4172.
2017-12-19Fix for #4171 fix: don't wrap note references after SoftBreakAlexander Krotov1-0/+14
2017-12-19Muse reader: parse empty comments correctlyAlexander Krotov1-0/+2
2017-12-18Org writer: don't allow fn refs to wrap to beginning of line.John MacFarlane1-0/+11
Otherwise they can be interpreted as footnote definitions. Closes #4171.
2017-12-17OPML reader: enable raw HTML and other extensions by default for notes.John MacFarlane1-0/+35
This fixes a regression in 2.0. Note that extensions can now be individually disabled, e.g. `-f opml-smart-raw_html`. Closes #4164.
2017-12-15Added tests of latex tokenizer.John MacFarlane1-1/+18
This should help prevent regressions like #4159.
2017-12-15Fixed regression in LateX tokenization.John MacFarlane1-0/+8
This mainly affects the Markdown reader when parsing raw LaTeX with escaped spaces. Closes #4159.
2017-12-14RST reader: more accurate parsing of references.John MacFarlane2-0/+28
Previously we erroneously included the enclosing backticks in a reference ID (closes #4156). This change also disables interpretation of syntax inside references, as in docutils. So, there is no emphasis in `my *link*`_
2017-12-14Merge pull request #4148 from stencila/jats-figuresJohn MacFarlane3-1/+122
fig, table-wrap & caption Divs for JATS writer
2017-12-14Deduplicate JATS writer image mime type codeHamish Mackenzie1-1/+1
2017-12-13Merge pull request #4153 from tarleb/unify-lua-initJohn MacFarlane1-13/+18
Unify lua initalization
2017-12-13Docx writer: Add tests for list continuation.Jesse Rosenthal5-0/+23
2017-12-13Custom writer: use init file to setup Lua interpreterAlbert Krewinkel1-13/+18
The same init file (`data/init`) that is used to setup the Lua interpreter for Lua filters is also used to setup the interpreter of custom writers.lua.
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-13fig, table-wrap & caption Divs for JATS writerHamish Mackenzie2-0/+121
Support writing <fig> and <table-wrap> elements with <title> and <caption> inside them by using Divs with class set to on of fig, table-wrap or cation. The title is included as a Heading so the constraint on where Heading can occur is also relaxed. Also leaves out empty alt attributes on links.
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