aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
AgeCommit message (Collapse)AuthorFilesLines
2018-10-16Merge branch 'groff_reader' of https://github.com/Yanpas/pandoc into ↵John MacFarlane2-0/+87
Yanpas-groff_reader
2018-10-17added old-style testYan Pas2-1/+5
2018-10-15Only override --quickcheck-tests=N if N is not default value (100).John MacFarlane2-2/+12
Some of the round-trip tests are set to do a maximum of 25 trials when the default value is given. Closes #4956.
2018-10-16buildersYan Pas1-4/+4
2018-10-14tests, commented debug functionsYan Pas1-19/+58
2018-10-10Test that Muse reader can parse code with = sign insideAlexander Krotov1-0/+2
(fixed by previous commit)
2018-10-10Muse reader: fix parsing of empty cellsAlexander Krotov1-0/+11
2018-10-07Merge branch 'master' into groff_readerYan Pas12-38/+307
2018-10-05Muse reader: allow table caption to contain "+"Alexander Krotov1-0/+8
2018-09-28Parse empty argument array in inline src blocks.leungbk1-0/+7
`enclosedByPair` alone does not the handle the empty array properly since it uses `many1Till`.
2018-09-27HTML, Muse reader tests: reduce time taken by round-trip test.John MacFarlane2-4/+6
2018-09-24Use hslua v1.0.0Albert Krewinkel1-5/+5
2018-09-22Muse reader tests: more testsAlexander Krotov1-0/+12
Check that indented blocks that end in self-terminating blocks (such as block tags and verse) can be terminated by paragraphs.
2018-09-21Muse reader: do not allow code markup to be followed by digitAlexander Krotov1-0/+4
2018-09-19Markdown reader: distinguish autolinks in the AST.John MacFarlane1-3/+5
With this change, autolinks are parsed as Links with the `uri` class. (The same is true for bare links, if the `autolink_bare_uris` extension is enabled.) Email autolinks are parsed as Links with the `email` class. This allows the distinction to be represented in the URI. Formerly the `uri` class was added to autolinks by the HTML writer, but it had to guess what was an autolink and could not distinguish `[http://example.com](http://example.com)` from `<http://example.com>`. It also incorrectly recognized `[pandoc](pandoc)` as an autolink. Now the HTML writer simply passes through the `uri` attribute if it is present, but does not add anything. The Textile writer has been modified so that the `uri` class is not explicitly added for autolinks, even if it is present. Closes #4913.
2018-09-19Lua filter tests: produce better error on test failureAlbert Krewinkel1-2/+2
2018-09-18parse rST inlines containing newlines closing #4912danse1-0/+3
this eliminates a regression error introduced after pandoc 2.1.1, affecting rST inline parsing. see the issue for details
2018-09-16Muse writer: replace newlines in strings with spacesAlexander Krotov1-0/+1
2018-09-11Enable tables in HTML round trip testAlexander Krotov1-1/+0
2018-09-11HTML reader tests: accept Blocks in round trip testAlexander Krotov1-2/+2
2018-09-11Muse reader tests: accept Blocks instead of Block in round trip testAlexander Krotov1-2/+2
This way testcase can be shrinked better up to removing all blocks completely.
2018-09-11Muse writer: set envInsideBlock = True when rendering notesAlexander Krotov1-0/+7
2018-09-11HTML writer: always output <dt> element, even if it is emptyAlexander Krotov1-0/+5
Fixes #4883
2018-09-11Muse writer: check for whitespace in the beginning and end of Str'sAlexander Krotov1-0/+3
2018-09-11Muse writer: escape -, ; and > in the beginning of stringsAlexander Krotov1-0/+10
2018-09-11Muse writer: escape list markers in the beginning of notesAlexander Krotov1-0/+6
2018-09-11Muse writer: normalize inline list before testing if tags should be usedAlexander Krotov1-0/+1
2018-09-11Muse writer: use tags instead of lightweight markup for empty stringsAlexander Krotov1-0/+4
2018-09-10Remove RawBlock from HTML round trip testsAlexander Krotov1-0/+1
2018-09-10HTML reader: test round trip propertyAlexander Krotov1-0/+23
2018-09-06Org reader: respect export option `p` for planning infoAlbert Krewinkel2-0/+36
Inclusion of planning info (*DEADLINE*, *SCHEDULED*, and *CLOSED*) can be controlled via the `p` export option: setting the option to `t` will add all planning information in a *Plain* block below the respective headline.
2018-09-06Muse reader: close the </quote> in indented tag testAlexander Krotov1-1/+2
There is already a separate test for unclosed </quote>.
2018-09-05Org reader: strip planning info from outputAlbert Krewinkel1-0/+25
Planning info is parsed, but not included in the output (as is the default with Emacs Org-mode). Fixes: #4867
2018-09-04hlint Muse writer testsAlexander Krotov1-6/+6
2018-09-04Remove redundant $Alexander Krotov1-1/+1
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 writer: use lightweight markup when possibleAlexander Krotov1-11/+39
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-08-01RST writer: use `titleblock` instead of `title` variable for title blockFrancesco Occhipinti1-0/+8
Closes #4803 After this commit use `$titleblock$` in order to get what was contained in `$title$` before, that is a title and subtitle rendered according to the official rST method: http://docutils.sourceforge.net/docs/user/rst/quickstart.html#document-title-subtitle. from With this commit, the `$title$` and `$subtitle$` metadata are available and they simply carry the metadata values. This opens up more possibilities in templates.
2018-07-30Lua Utils module: add function blocks_to_inlines (#4799)Albert Krewinkel1-1/+2
Exposes a function converting which flattenes a list of blocks into a list of inlines. An example use case would be the conversion of Note elements into other inlines.
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 Krotov2-2/+2
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