aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers
AgeCommit message (Collapse)AuthorFilesLines
2018-09-02Muse reader: autonumber sections in the correct orderAlexander Krotov1-0/+12
Parsing now stops at each section header to ensure the header is registered before parsing of the next section starts.
2018-09-02Muse reader: allow newline after opening "*" or "**"Alexander Krotov1-0/+8
Emacs Muse allows this.
2018-08-31Muse reader: parse <verse> tag in one passAlexander Krotov1-0/+6
instead of using parseFromString. This change makes it possible to have verbatim </verse> tag inside verse.
2018-08-30Fix a typo: s/afeter/after/Alexander Krotov1-1/+1
2018-08-12Muse reader: don't allow digits after closing marker in lightweight markupAlexander Krotov1-0/+4
This change makes reader more compatible with Emacs Muse
2018-08-05RST reader: improve parsing of inline interpreted text roles.John MacFarlane1-1/+1
* Use a Span with class "title-reference" for the default title-reference role. * Use B.text to split up contents into Spaces, SoftBreaks, and Strs for title-reference. * Use Code with class "interpreted-text" instead of Span and Str for unknown roles. (The RST writer has also been modified to round-trip this properly.) * Disallow blank lines in interpreted text. * Backslash-escape now works in interpreted text. * Backticks followed by alphanumerics no longer end interpreted text. Closes #4811.
2018-07-24RST reader: remove support for nested inlines.danse1-0/+11
RST does not allow nested emphasis, links, or other inline constructs. Closes #4581, double parsing of links with URLs as link text. This supersedes the earlier fix for #4581 in 6419819b46c0d69c7024ba8aa4a6381cb311341c. Fixes #4561, a bug parsing with URLs inside emphasis. Closes #4792.
2018-07-23Org reader: fix parsers relying on parseFromStringAlbert Krewinkel1-0/+11
Emphasis was not parsed when it followed directly after some block types (e.g., lists). The org reader uses a wrapper for the `parseFromString` function to handle org-specific state. The last position of a character allowed before emphasis was reset incorrectly in this wrapper. Emphasized text was not recognized when placed directly behind a block which the reader parses using `parseFromString`. Fixes: #4784
2018-07-15Wrap emojis in span nodes (#4759)Anders Waldenborg1-1/+3
Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span inline containing the emoji character and some attributes with metadata (class `emoji`, attribute `data-emoji` with emoji name). Previously, emojis (as supported in Markdown and CommonMark readers, e.g ":smile:") were simply translated into the corresponding unicode code point. By wrapping them in Span nodes, we make it possible to do special handling such as giving them a special font in HTML output. We also open up the possibility of treating them differently when the `--ascii` option is selected (though that is not part of this commit). Closes #4743.
2018-07-02More spellcheckAlexander Krotov1-1/+1
2018-05-31Muse reader: add support for floating imagesAlexander Krotov1-0/+6
2018-05-31Muse reader: add support for images with specified widthAlexander Krotov1-0/+6
2018-05-30Muse reader: parse image URLs without "guard" and "takeExtension"Alexander Krotov1-0/+3
2018-05-27Muse reader: test image with space in filenameAlexander Krotov1-0/+3
2018-05-23tests, parsing fixesYan Pas1-3/+15
2018-05-12Merge branch 'master' into groff_readerYan Pas25-5879/+0
2018-05-11Removed inadvertently added .orig files from repository.John MacFarlane25-5879/+0
These were added by https://github.com/schrieveslaach/pandoc/commit/96d10c72cc95e56c9e49db3e6db7118e89d1f1e0 Closes #4648.
2018-05-09fix build and testsYan Pas1-2/+3
2018-05-09Merge branch 'master' into groff_readerYan Pashkovsky50-191/+6320
2018-05-09basic manfile parsingYan Pas1-4/+19
2018-04-26Add FB2 reader (#4539)Alexander1-0/+29
2018-04-26Muse reader: allow nested footnotesAlexander Krotov1-0/+9
2018-04-19Muse reader: allow "-" in anchorsAlexander Krotov1-0/+5
2018-04-17Docx reader tests: Test for combining adjacent code blocks.Jesse Rosenthal1-0/+4
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-15Muse reader: don't allow footnote references inside linksAlexander Krotov1-0/+3
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 MacFarlane25-0/+5879
Closes #4550.
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-02Muse reader: add <math> tag supportAlexander Krotov1-0/+2
2018-04-02Muse writer: place header IDs before headerAlexander Krotov1-1/+2
See https://github.com/melmothx/text-amuse/issues/39
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 reader: require block <literal> tags to be on separate linesAlexander Krotov1-0/+3
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 MacFarlane24-0/+48
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464.
2018-03-17hlint fixes.John MacFarlane3-3/+3
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-10Muse reader: parse <class> tagAlexander Krotov1-0/+3
<class> tag is supported by Emacs Muse
2018-03-07Muse reader: do not produce empty Str element for unindented verse linesAlexander 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 reader: do not consume whitespace while looking for closing end tagAlexander Krotov1-0/+11
Fix for a bug caught by round-trip test.