aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
AgeCommit message (Collapse)AuthorFilesLines
2018-04-05Changes to tests to accommodate changes in pandoc-types.John MacFarlane1-2/+4
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-05FB2 writer: represent HorizontalRule as empty lineAlexander Krotov1-2/+2
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-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 Krotov1-0/+3
It includes cases when they can be mistaken for footnotes and links, as well as inside link description.
2018-03-31Muse writer: do not escape list markers unless preceded by spaceAlexander Krotov1-0/+1
2018-03-28Muse writer: escape semicolons and markers after line breakAlexander Krotov1-0/+1
2018-03-25Muse reader: enable round-trip testAlexander Krotov1-3/+2
Close #4468
2018-03-25Muse reader: allow links to have empty descriptionsAlexander Krotov1-0/+3
2018-03-25Muse writer: escape ordered list markersAlexander Krotov1-4/+5
Also reduced amount of <verbatim> tags in output to avoid escaping every "-" and word that ends in a full stop.
2018-03-25Muse writer: enable --wrap=preserve for all tests by defaultAlexander Krotov1-5/+5
2018-03-25Muse reader: require block <literal> tags to be on separate linesAlexander Krotov1-0/+3
2018-03-25Muse writer: improve span writingAlexander Krotov1-2/+8
Test more cases when span has or hasn't anchor, class and contents in different combinations.
2018-03-25Muse writer: do not join Span's doing normalizationAlexander Krotov1-0/+3
Separate spans may have different semantics, for example if spans indicate syllables in a word.
2018-03-21Muse writer: don't align ordered list itemsAlexander Krotov1-6/+6
It leads to problems with round-trip test, because aligned line blocks can't be read back.
2018-03-21Powerpoint writer: add tests for improved speaker notes.Jesse Rosenthal1-0/+4
Tests speaker notes appearing after (and inside of) separating blocks. Output checked on Windows10 (archlinux virtualbox), PowerPoint 2013. Not corrupted, and output as expected.
2018-03-20Muse writer: escape "]" in image titleAlexander Krotov1-0/+1
2018-03-20Muse writer: escape ";" to avoid accidental commentsAlexander Krotov1-0/+1
2018-03-20Muse writer: escape "]" brackets in URLs as "%5D"Alexander Krotov1-0/+15
2018-03-18Comment out Muse reader round-trip test.John MacFarlane1-3/+4
It fails too often. Perhaps a separate test program should be used to hunt for round-trip bugs.
2018-03-18Use NoImplicitPrelude and explicitly import Prelude.John MacFarlane46-0/+92
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464.
2018-03-17hlint fixes.John MacFarlane5-5/+4
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-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-13Docx reader: add tests for nested smart tags.Jesse Rosenthal1-0/+4
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-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 Krotov1-0/+9
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 Bentley1-26/+12
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-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: 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 Rosenthal1-0/+4
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