aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2018-03-17hlint fixes.John MacFarlane5-5/+4
2018-03-17Add support to parse unit string of \SI command (closes #4296).Marc Schreiber1-0/+36
2018-03-17RST writer: filter out empty inline containers (#4434).Francesco Occhipinti1-7/+11
There is nothing in RST that corresponds to e.g. `Emph []`, so we just filter out elements like this.
2018-03-17Don't wrap lines in grid tables when `--wrap=none` (#4320)Francesco Occhipinti1-0/+15
* Annotate gridTable code with comments and abstract small functions * Don't wrap lines in tables when `--wrap=none`. Instead, expand cells, even if it results in cells that don't respect relative widths or surpass page column width. * This change affects RST, Markdown, and Haddock writers.
2018-03-17Provide `bidi` package's option using `\PassOptionsToPackage` (#4357).Václav Haisman1-2/+2
* Provide `bidi` package's option using `\PassOptionsToPackage`. This avoid clash when `polyglossia` loads it first and then it is loaded again for XeLaTeX when `latex-dir-rtl` defined. * Adjust test suite for LaTeX template change.
2018-03-17RST writer: strip whitespace within inlines, closes #4327 (#4329)Francesco Occhipinti1-0/+9
+ Whitespace is ignored at the beginning and end of emphasis, as per <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup>. + Export `stripLeadingTrailingSpace` from `Text.Pandoc.Writers.Shared`.
2018-03-17Removed redundant import of <>John MacFarlane1-1/+1
2018-03-16Better table handling for Haddock.John MacFarlane1-53/+67
In the reader, we use the new Table type in Haddock. Note that tables with col/rowspans will not translate well into Pandoc. In the writer, we now render tables always as grid tables, since Haddock supports these.
2018-03-14RST reader: Allow unicode bullet characters.John MacFarlane1-0/+9
Closes #4454.
2018-03-13Docx reader: add tests for nested smart tags.Jesse Rosenthal3-0/+11
2018-03-13Beamer: put hyperlink after `\begin{frame}`.John MacFarlane2-6/+4
and not in the title. If it's in the title, then we get a titlebar on slides with the `plain` attribute, when the id is non-null. This fixes a regression from 1.9.x. Closes #4307.
2018-03-12Muse reader: compare first rewrite to the second in round-trip testAlexander Krotov1-4/+2
2018-03-12Muse reader: require closing tag to have the same indentation as openingAlexander Krotov1-0/+18
2018-03-12Muse reader: do not reparse blocks inside unclosed block tagAlexander Krotov1-0/+18
Fixes #4425
2018-03-11Dokuwiki writer: fix LineBreaks in Tables (#4444)Mauro Bieg2-4/+10
fixes #4313
2018-03-12Muse writer: support spans with anchorsAlexander Krotov1-1/+5
2018-03-10Muse reader: parse <class> tagAlexander Krotov1-0/+3
<class> tag is supported by Emacs Muse
2018-03-07Muse writer: replace smallcaps with emphasis before normalizationAlexander Krotov1-0/+1
2018-03-07Muse writer: output smallcaps as emphasisAlexander Krotov1-1/+1
2018-03-07Muse writer: write empty inline lists as <verbatim></verbatim>Alexander Krotov1-0/+9
2018-03-07Muse writer: escape "-" to avoid creating bullet listsAlexander Krotov2-1/+10
2018-03-07Muse reader: do not produce empty Str element for unindented verse linesAlexander Krotov1-0/+1
2018-03-06Muse writer: fix math expansion for more than one expression per paragraphAlexander Krotov1-0/+1
2018-03-05Remove extraneous, significant whitespace in JATS writer output (#4335)Nokome Bentley5-2234/+825
This patch fixes some cases where the JATS writer was introducing semantically significant whitespace by indenting and wrapping tags. Note that the JATS spec has a content model for `<p>` tags of `(#PCDATA | ...`. Any tag where `#PCDATA` children are possible should not have any indentation. The same is true for `<th>`, `<td>`, `<term>`, `<label>`.
2018-03-05Muse writer: expand math before inline list normalizationAlexander Krotov1-0/+1
2018-03-03Muse reader: fix indentation requirements for footnote continuationsAlexander Krotov1-0/+10
2018-03-02LaTeX reader: Fix regression in package options including underscore.John MacFarlane1-0/+10
Closes #4424.
2018-03-02Muse reader: enable <literal> tags even if amuse extension is enabledAlexander Krotov1-9/+0
Amusewiki disables <literal> tags for security reasons. If user wants similar behavior in pandoc, RawBlocks and RawInlines can be removed or replaced with filters.
2018-03-02Muse writer: update writer.museAlexander Krotov1-1/+1
2018-03-02Muse writer: join strings during inline normalizationAlexander Krotov1-0/+1
2018-03-02Muse reader: do not consume whitespace while looking for closing end tagAlexander Krotov1-0/+11
Fix for a bug caught by round-trip test.
2018-03-02Muse reader: convert alphabetical list markers to decimal in round-trip testAlexander Krotov1-0/+2
Alphabetical lists are an addition of Text::Amuse. They are not present in Emacs Muse and can be ambiguous when list starts with "i.", "c." etc.
2018-02-28Docx reader: Handle nested sdt tags.Jesse Rosenthal3-0/+7
Previously we had only unwrapped one level of sdt tags. Now we recurse if we find them. Closes: #4415
2018-02-28Muse reader: add test for verse tag with one empty lineAlexander Krotov1-0/+6
2018-02-28Muse writer: change verse markupAlexander Krotov1-5/+3
Use "> " instead of <verse> tag
2018-02-28Muse writer: remove empty strings during inline normalizationAlexander Krotov1-0/+1
2018-02-28Muse reader: allow <quote> and other tags to be indentedAlexander Krotov1-0/+6
2018-02-27Powerpoint writer: use `trim` from SharedJesse Rosenthal1-2/+0
Instead of writing my own.
2018-02-27Powerpoint writer: Use table stylesJesse Rosenthal2-0/+0
This will use the default table style in the reference-doc file. As a result they will be easier when using in a template, and match the color scheme.
2018-02-27Powerpoint writer: add test for table and list syntaxJesse Rosenthal7-0/+62
These were never added when the tests were first created. Output files checked in MS PowerPoint 2013 (Windows 10, VBox). No corruption, and output as expected.
2018-02-27Powerpoint writer: Remove empty slidesJesse Rosenthal4-0/+9
Make sure there are no empty slides in the pptx output. Because of the way that slides were split, these could be accidentally produced by comments after images. When animations are added, there will be a way to add an empty slide with either incremental lists or pauses. Test outputs checked with MS PowerPoint (Office 2013, Windows 10, VBox). Both files have expected output and are not corrupted.
2018-02-26Org reader tests: move citation tests to separate moduleAlbert Krewinkel2-167/+181
2018-02-25Tests/Lua: fix tests on windowsAlbert Krewinkel1-1/+1
2018-02-24Lua: register script name in global variableAlbert Krewinkel2-0/+9
The name of the Lua script which is executed is made available in the global Lua variable `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers. Closes: #4393
2018-02-24Muse reader: allow single colon in definition list termAlexander Krotov1-0/+3
2018-02-23Docx reader: Don't look up dependant run styles if +styles is enabled.Jesse Rosenthal1-1/+1
It makes more sense not to interpret -- otherwise using the original document as the reference-doc would produce two of everything: the interpreted version and the uninterpreted style version.
2018-02-23Muse writer: don't indent nested definition listsAlexander Krotov1-2/+2
2018-02-23Docx test: adjust test for fix of buglaptop1\Andrew3-5/+8
This commit adjusts the test cases for the Docx writer after the fix of #3930. - Adjusted test cases with inline images. The inline images now have the correct sizing, title and description. - Modified the test case to include an image multiple times with different sizing each time. - Tested on Windows 8.1 with Word 2007 (12.0.6705.5000) The files are not corrupted and display exactly what is expected.
2018-02-23Muse reader: improve verse parsingAlexander Krotov1-0/+11
Now verse marked up with ">" (in contrast to <verse> tag) can be placed inside lists.
2018-02-22Docx reader: Move pandoc inline styling inside custom-style spanJesse Rosenthal1-1/+1
Previously Emph, Strong, etc were outside the custom-style span. This moves them inside in order to make it easier to write filters that act on the formatting in these contents. Tests and MANUAL example are changed to match.