summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* Merge pull request #4170 from oltolm/opendocumentJohn MacFarlane2017-12-28
|\ | | | | improve formatting of formulas in OpenDocument
| * improve formatting of formulas in OpenDocumentoltolm2017-12-28
| |
* | Powerpoint writer tests: use IO.John MacFarlane2017-12-28
| | | | | | | | | | Otherwise we can't find the data files when compiled with -embed_data_files.
* | Use insertInFileTree in powerpoint test.John MacFarlane2017-12-28
| |
* | Text.Pandoc.Class: add insertInFileTree (API change).John MacFarlane2017-12-28
| | | | | | | | | | | | | | This gives a pure way to insert an ersatz file into a FileTree. In addition, we normalize paths both on insertion and on lookup, so that "foo" and "./foo" will be judged equivalent.
* | Fixed warning in powerpoint writer test.John MacFarlane2017-12-28
| |
* | LaTeX writer: Use \endhead after \toprule in headerless tables.John MacFarlane2017-12-28
| | | | | | | | Closes #4207.
* | LaTeX reader: be more tolerant of `&` character.John MacFarlane2017-12-28
| | | | | | | | | | This allows us to parse unknown tabular environments as raw LaTeX. Closes #4208.
* | PowerPoint writer: Introduce beginning of testsJesse Rosenthal2017-12-28
| | | | | | | | | | | | | | | | | | | | | | This is the beginning of a test suite for the powerpoint writer. Initial tests are for the number of slides. Note that at the moment it does not test against corruption in Microsoft PowerPoint; it just tests that certain outcomes work as expected. More tests will be added. This test framework uses the PandocPure monad introduced with Pandoc 2.0.
* | Org smart test: drop superfluous importAlbert Krewinkel2017-12-28
| | | | | | | | Keeps GHC 7.8 and GHC 7.10 happy.
* | Org reader: support minlevel option for includesAlbert Krewinkel2017-12-28
| | | | | | | | | | | | | | | | | | The level of headers in included files can be shifted to a higher level by specifying a minimum header level via the `:minlevel` parameter. E.g. `#+include: "tour.org" :minlevel 1` will shift the headers in tour.org such that the topmost headers become level 1 headers. Fixes: #4154
* | Break-up org reader test fileAlbert Krewinkel2017-12-28
| | | | | | | | | | | | | | The org reader test file had grown large, to the point that editor performance was negatively affected in some cases. The tests are spread over multiple submodules, and re-combined into a tasty TestTree in the main org reader test file.
* | Merge pull request #4184 from mb21/html-reader-figcaptionJohn MacFarlane2017-12-27
|\ \ | | | | | | HTML Reader: be more forgiving about figcaption
| * | HTML Reader: be more forgiving about figcaptionmb212017-12-23
| | | | | | | | | | | | fixes #4183
* | | HTML reader: parse div with class `line-block` as LineBlock.John MacFarlane2017-12-27
| | | | | | | | | | | | See #4162.
* | | Added tests for custom writer.John MacFarlane2017-12-27
| | |
* | | Docx reader: add tests for structured document tags unwrapping.Jesse Rosenthal2017-12-27
| |/ |/|
* | LaTeX reader: support `\foreignlanguage` from babel.John MacFarlane2017-12-26
| |
* | HTML writer: Use br elements in line blocks...John MacFarlane2017-12-26
| | | | | | | | | | | | | | | | instead of relying on CSS. Closes #4162. HTML-based templates have had the custom CSS for div.line-block removed. Those maintaining custom templates will want to remove this too. We still enclose line blocks in a div with class line-block.
* | RST reader: allow empty list items (as docutils does).John MacFarlane2017-12-24
| | | | | | | | Closes #4193.
* | Lua modules: add function pandoc.utils.hierarchicalizeAlbert Krewinkel2017-12-23
| | | | | | | | Convert list of Pandoc blocks into (hierarchical) list of Elements.
* | JATS reader: process author metadata.John MacFarlane2017-12-23
| |
* | Lua modules: add function pandoc.utils.normalize_dateAlbert Krewinkel2017-12-23
| | | | | | | | | | The function parses a date and converts it (if possible) to "YYYY-MM-DD" format.
* | Lua modules: add function pandoc.utils.to_roman_numeralAlbert Krewinkel2017-12-23
|/ | | | | The function allows conversion of numbers below 4000 into roman numerals.
* `latex_macros` extension changes.John MacFarlane2017-12-22
| | | | | | | | | | | | Don't pass through macro definitions themselves when `latex_macros` is set. The macros have already been applied. If `latex_macros` is enabled, then `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing a macro definition, and will update pandoc's internal macro map accordingly, but the empty string will be returned. Together with earlier changes, this closes #4179.
* Markdown reader: improved raw tex parsing.John MacFarlane2017-12-22
| | | | | + Preserve original whitespace between blocks. + Recognize `\placeformula` as context.
* Lua modules: add stringify function to pandoc.utilsAlbert Krewinkel2017-12-22
| | | | | The new function `pandoc.utils.stringify` converts any AST element to a string with formatting removed.
* RST writer: fix anchors for headers.John MacFarlane2017-12-22
| | | | | We were missing an `_`. See #4188.
* Merge pull request #4177 from stencila/jats-xml-readerJohn MacFarlane2017-12-21
|\ | | | | Add Basic JATS reader based on DocBook reader
| * Improve support for code language in JATSHamish Mackenzie2017-12-22
| |
| * Add Basic JATS reader based on DocBook readerHamish Mackenzie2017-12-20
| |
* | JATS writer: Make <p> optional in <td> and <th> (#4178)Hamish Mackenzie2017-12-21
| | | | | | | | If the contents are single `Plain` block then do not wrap them with a <p> element.
* | Org writer: do not wrap "-" to avoid accidental bullet listsAlexander Krotov2017-12-21
| | | | | | | | Also add TODO for ordered lists.
* | Muse reader: parse anchors immediately after headings as IDsAlexander Krotov2017-12-21
| |
* | Test more pandoc Lua module functionsAlbert Krewinkel2017-12-20
| | | | | | | | | | | | The functions `sha1`, `read`, and `pipe` are now tested. Change: minor
* | Muse reader: require that note references does not start with 0Alexander Krotov2017-12-20
|/
* Muse writer: don't wrap note references to the next lineAlexander Krotov2017-12-19
| | | | Closes #4172.
* Fix for #4171 fix: don't wrap note references after SoftBreakAlexander Krotov2017-12-19
|
* Muse reader: parse empty comments correctlyAlexander Krotov2017-12-19
|
* Org writer: don't allow fn refs to wrap to beginning of line.John MacFarlane2017-12-18
| | | | | | Otherwise they can be interpreted as footnote definitions. Closes #4171.
* OPML reader: enable raw HTML and other extensions by default for notes.John MacFarlane2017-12-17
| | | | | | | | | This fixes a regression in 2.0. Note that extensions can now be individually disabled, e.g. `-f opml-smart-raw_html`. Closes #4164.
* Added tests of latex tokenizer.John MacFarlane2017-12-15
| | | | This should help prevent regressions like #4159.
* Fixed regression in LateX tokenization.John MacFarlane2017-12-15
| | | | | This mainly affects the Markdown reader when parsing raw LaTeX with escaped spaces. Closes #4159.
* RST reader: more accurate parsing of references.John MacFarlane2017-12-14
| | | | | | | | | | | 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*`_
* Merge pull request #4148 from stencila/jats-figuresJohn MacFarlane2017-12-14
|\ | | | | fig, table-wrap & caption Divs for JATS writer
| * Deduplicate JATS writer image mime type codeHamish Mackenzie2017-12-14
| |
| * fig, table-wrap & caption Divs for JATS writerHamish Mackenzie2017-12-13
| | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #4153 from tarleb/unify-lua-initJohn MacFarlane2017-12-13
|\ \ | | | | | | Unify lua initalization
| * | Custom writer: use init file to setup Lua interpreterAlbert Krewinkel2017-12-13
| | | | | | | | | | | | | | | | | | 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.
* | | Docx writer: Add tests for list continuation.Jesse Rosenthal2017-12-13
|/ /