aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2018-05-08test-pandoc-utils.lua: workaround some local differences in 'echo'.John MacFarlane1-2/+2
2018-05-08test-pandoc-utils.lua: remove problems with missing `/bin/false`.John MacFarlane1-13/+22
Previously it was assumed that the system would have `/bin/false` and `/bin/sed`, and these tests were skipped otherwise. On MacOS, these utilities are located in `/usr/bin`. Fixed by just using `sed` and `false` -- these should always be in the path. Removed the "skipping" behavior, replaced with a check for Windows. On Windowns, we use `echo` and `cd`, which should always exist. Not yet checked on Windows.
2018-05-08Support underline in docx writer.John MacFarlane1-0/+0
Updated golden test and confirmed validity of file. Closes #4633.
2018-05-08Add test for #4576.John MacFarlane1-0/+6
Closes #4576.
2018-05-07Muse writer: add support for left-align and right-align classesAlexander Krotov1-0/+6
Address issue #4542
2018-05-01Update tests for #4605.John MacFarlane2-2/+2
2018-04-29Test Lua filter converting display math to inline mathAlexander Krotov2-1/+18
2018-04-27RST writer: preserve empty inline parents in flatten (#4603)Francesco Occhipinti1-0/+3
2018-04-26Add FB2 reader (#4539)Alexander12-0/+171
2018-04-26Merge branch 'fb2-hrblankline' of https://github.com/labdsf/pandoc into ↵John MacFarlane4-56/+144
labdsf-fb2-hrblankline
2018-04-26RST reader: fix anonymous redirects with backticks.John MacFarlane1-0/+10
Closes #4598.
2018-04-26RST reader: flatten nested inlines, closes #4368 (#4554)Francesco Occhipinti2-7/+31
nested inlines are not valid RST syntax, so we flatten them following some readability criteria discussed in #4368.
2018-04-26Muse reader: allow nested footnotesAlexander Krotov1-0/+9
2018-04-25Add tests for #4589 and #4594 (currently failing).John MacFarlane2-0/+38
2018-04-25Ms template: Fix date.John MacFarlane1-1/+4
Previously .ND was used, but this only works if you have a title page, which we don't. Thanks to @teoric.
2018-04-25Removed deprecated ancient HTML math methods.John MacFarlane2-203/+3
Removed `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`, `--asciimathml` options. Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from `Text.Pandoc.Options.HTMLMathMethod` [API change]. Removed unneeded data file LaTeXMathML.js and updated tests. Bumped version to 2.2.
2018-04-25Remove nonfree ICC profiles from thumbnails in test docx files.John MacFarlane18-0/+0
Closes #4588.
2018-04-22RST reader: allow < 3 spaces indent under directives.John MacFarlane1-0/+16
Closes #4579.
2018-04-21Small test suite update. Markdown tables.John MacFarlane1-8/+8
2018-04-21Markdown reader/writer: spacing adjustments in tables.John MacFarlane23-148/+162
* Markdown writer now includes a blank line at the end of the row in a single-row multiline table, to prevent it from being interpreted as a simple table. Closes #4578. * Markdown reader does a better job computing the relative width of the last column in a multiline table, so we can round-trip tables without constantly shrinking the last column.
2018-04-19RST writer: use more consistent indentation.John MacFarlane6-83/+83
Previously we used an odd mix of 3- and 4-space indentation. Now we use 3-space indentation, except for ordered lists, where indentation must depend on the width of the list marker. Closes #4563.
2018-04-19FB2 writer: convert metadata value "abstract" to book annotationAlexander Krotov3-0/+11
2018-04-19Muse reader: allow "-" in anchorsAlexander Krotov1-0/+5
2018-04-17Docx reader tests: Test for combining adjacent code blocks.Jesse Rosenthal3-0/+10
2018-04-17Markdown reader: add regression test for previous commitAlexander Krotov1-0/+3
2018-04-16Muse reader: allow verse to be indentedAlexander Krotov1-0/+18
Muse writer indents verse blocks in definition list more than necessary, so Muse reader should parse them.
2018-04-16Fix a typo in Muse reader testsuite commentAlexander Krotov1-1/+1
2018-04-16Muse writer: escape definition list terms starting with list markersAlexander Krotov1-0/+9
2018-04-15Ms writer: font improvements.John MacFarlane1-25/+25
* Use `\f[R]` rather than `\f[]` to reset. The latter returns to the previous font, which gives unintended results in some cases. * Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`, since the header font is automatically bold. * Use `\f[CB]` rather than `\f[BC]` for monospace bold. Closes #4552.
2018-04-15Muse reader: don't allow footnote references inside linksAlexander Krotov1-0/+3
2018-04-15Muse writer: escape strings starting with spaceAlexander Krotov1-0/+9
2018-04-15Muse reader: allow URL to be emptyAlexander Krotov1-0/+1
Muse writer can write links with empty URLs, so Muse reader should read them.
2018-04-15Muse reader: require that comment semicolons are in the first columnAlexander Krotov1-0/+1
Fixes #4551
2018-04-14Man writer: Don't escape U+2019 as '.John MacFarlane82-21/+10417
Closes #4550.
2018-04-10Muse writer: escape > less oftenAlexander Krotov2-3/+4
> should be escaped only when it can start verse, i.e., at the beginning of the line.
2018-04-09Muse writer: don't break headers, line blocks and tables with line breaksAlexander Krotov1-0/+2
2018-04-09Muse writer: correctly output empty headingsAlexander Krotov1-0/+1
2018-04-09Muse reader: add support for Text:Amuse multiline headingsAlexander Krotov1-4/+18
2018-04-07Muse reader: add support for <biblio> and <play> tagsAlexander Krotov1-0/+17
2018-04-07FB2 writer: output links inline instead of producing notesAlexander Krotov2-324/+59
Previously all links were turned into footnotes with unclickable URLs inside.
2018-04-05Changes to tests to accommodate changes in pandoc-types.John MacFarlane2-2/+7
In https://github.com/jgm/pandoc-types/pull/36 we changed the table builder to pad cells. This commit changes tests (and two readers) to accord with this behavior.
2018-04-05LaTEX reader: properly resolve section numbers with \ref and chapters.John MacFarlane1-0/+36
Closes #4529.
2018-04-05FB2 writer: represent HorizontalRule as empty lineAlexander Krotov4-55/+78
HorizontalRule corresponds to <hr> element in the default output format, HTML. Current HTML standard defines <hr> element as "paragraph-level thematic break". In typography it is often represented by extra space or centered asterism ("⁂"), but since FB2 does not support text centering, empty line (similar to extra space) is the only solution. Line breaks, on the other hand, don't generate <empty-line /> anymore. Previously line breaks generated <empty-line /> element inside paragraph, which is not allowed. So, this commit addresses issue #2424 ("FB2 produced by pandoc doesn't validate"). FB2 does not have a way to represent line breaks inside paragraphs. They are replaced with LF character, which is not rendered by FB2 readers, but at least preserves some information.
2018-04-05Muse writer: escape horizontal rule only if at the beginning of the lineAlexander Krotov1-1/+3
2018-04-05CommonMark writer: correctly ignore LaTeX raw blocks when not raw_tex (#4533)quasicomputational1-0/+21
Issue #4527.
2018-04-04FB2 writer: allow emphasis and notes in titlesAlexander Krotov3-89/+103
Only <p> and <empty-line /> are allowed in titles, but <p> has the same type as an ordinary paragraphs. Therefore, there is no need to remove emphasis from titles. Also, don't intersperse paragraph with empty lines.
2018-04-02LaTeX reader: parse sloppypar environment (#4517)Marc Schreiber1-0/+23
2018-04-02Muse reader: add <math> tag supportAlexander Krotov1-0/+2
2018-04-02Muse writer: place header IDs before headerAlexander Krotov2-3/+4
See https://github.com/melmothx/text-amuse/issues/39
2018-04-01Muse writer: only escape brackets when necessaryAlexander Krotov2-6/+9
It includes cases when they can be mistaken for footnotes and links, as well as inside link description.