aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers
AgeCommit message (Collapse)AuthorFilesLines
2019-03-25HTML reader: read `data-foo` attribute into `foo`.John MacFarlane1-1/+1
The HTML writer adds the `data-` prefix for HTML5 for nonstandard attributes. But the attributes are represented in the AST without the `data-` prefix, so we should strip this when reading HTML. Closes #5392.
2019-02-18Docx reader: add tests for trimming last inline.Jesse Rosenthal1-0/+4
2019-02-18Muse reader: add secondary note supportAlexander Krotov1-0/+17
2019-02-12Docx reader: Add test for reading sdts in footnotes.Jesse Rosenthal1-0/+4
2019-02-06Docx reader: Tests for alternate document.xmlJesse Rosenthal1-2/+7
2019-02-06Muse reader: test that block level markup does not break <verbatim>Alexander Krotov1-0/+7
2019-02-04Add missing copyright notices and remove license boilerplate (#5112)Albert Krewinkel28-0/+311
Quite a few modules were missing copyright notices. This commit adds copyright notices everywhere via haddock module headers. The old license boilerplate comment is redundant with this and has been removed. Update copyright years to 2019. Closes #4592.
2019-01-09RST reader: change treatment of `number-lines` directives. (#5207)Brian Leung1-2/+2
Directives of this type without numeric inputs should not have a `startFrom` attribute; with a blank value, the writers can produce extra whitespace.
2019-01-08Removed superfluous sourceCode class on code blocks.John MacFarlane2-8/+8
* These were added by the RST reader and, for literate Haskell, by the Markdown and LaTeX readers. There is no point to this class, and it is not applied consistently by all readers. See #5047. * Reverse order of `literate` and `haskell` classes on code blocks when parsing literate Haskell. Better if `haskell` comes first.
2019-01-07Org reader: handle `minlevel` option differently. (#5190)Brian Leung1-1/+6
When `minlevel` exceeds the original minimum level observed in the file to be included, every heading should be shifted rightward.
2019-01-06Add DokuWiki reader (#5108)Alexander1-0/+315
Closes #1792
2019-01-01Org reader: fix self-link parsing regressionAlbert Krewinkel1-0/+4
Fixes a regression introduced by the previous commit.
2019-01-01Org reader: fix treatment of links to imagesAlbert Krewinkel1-13/+17
Links with descriptions which are pointing to images are no longer read as inline images, but as proper links. Fixes: #5191
2018-12-25Muse reader tests: test #cover directiveAlexander Krotov1-0/+5
2018-12-10Docx: add test for lists with level overrides.Jesse Rosenthal1-0/+4
2018-11-14Muse reader: trim whitespace before parsing grid table cellsAlexander Krotov1-0/+11
2018-11-14Muse reader: add grid tables supportAlexander Krotov1-0/+43
2018-11-02table testsYan Pashkovsky1-0/+11
2018-10-30Roff reader: properly handle unknown backslash escapes.John MacFarlane1-0/+2
They are treated as regular characters, according to groff 7. Cloess #5034.
2018-10-28Roff tokenizer: better handling of escapes.John MacFarlane1-2/+2
2018-10-28Roff tokenizer: revamped font parsing using escapeArg.John MacFarlane1-1/+1
Add support for \C'...' escapes.
2018-10-28Muse: Make tables round-tripAlexander Krotov1-2/+16
2018-10-28Muse reader: try to parse lists before trying to parse tableAlexander Krotov1-0/+12
This ensures that tables inside lists are parsed correctly.
2018-10-27Remove misleading comment from Muse reader testsAlexander Krotov1-1/+0
pandoc follows Text::Amuse rules instead of being bug compatible with Emacs Muse
2018-10-27Muse reader: forbid whitespace after opening and before closing markup elementsAlexander Krotov1-2/+10
See https://github.com/melmothx/text-amuse/issues/44 for discussion on these rules
2018-10-26Muse reader: parse page breaksAlexander Krotov1-0/+8
2018-10-22Man reader: don't parse \[ul] as unicode escape.John MacFarlane1-1/+1
2018-10-22Muse reader: allow footnotes to start with empty lineAlexander Krotov1-0/+17
A space character was required after footnote marker, now newline is allowed.
2018-10-20Man reader: Fixed handling of nested fonts.John MacFarlane1-0/+7
Closes #4978.
2018-10-21Muse reader: allow empty headersAlexander Krotov1-0/+7
Previously empty headers caused parser to terminate without parsing the rest of the document.
2018-10-20Man reader: Fix .B, .I, .BR, etc.John MacFarlane1-1/+4
2018-10-20Man reader: major restructuring, support macros.John MacFarlane1-4/+4
- Improved support for custom macro definitions. - LinePart type has been added. RoffStr is now one constructor of LinePart (the other being MacroArg). - MComment has lost its argument. - MEndMacro has been removed. - MStr has been removed (we now simply use LinePart). - Macros now store a list of tokens. - Each macro argument is a [LinePart], instead of a LinePart. - .BR now behaves as documented in man (and doesn't create a link).
2018-10-20Man reader: handle shift in list style.John MacFarlane1-6/+10
Closes #4987.
2018-10-19Man reader: Improved header parsing.John MacFarlane1-2/+2
- .SH should be level 1, .SS level 2. - The header title can come on the next line.
2018-10-19Man reader: properly handle multi-block list items.John MacFarlane1-4/+4
Closes #4985.
2018-10-19Man reader: Added more tests for escapes.John MacFarlane1-6/+11
Closes #4983.
2018-10-19Man reader: minor improvements.John MacFarlane1-2/+8
use `trimInlines` for Para content to avoid leading and trailing spaces. Fix handling of \" in middle of line. Add more tests for escapes.
2018-10-19More man reader test updates.John MacFarlane1-6/+6
2018-10-18Update man reader tests.John MacFarlane1-2/+2
2018-10-18Merge branch 'Yanpas-groff_reader'John MacFarlane1-0/+83
2018-10-17Muse reader: allow examples to be indented with tabsAlexander Krotov1-0/+8
2018-10-17Muse reader: remove indentation from examples indicated by {{{ and }}}Alexander Krotov1-0/+6
2018-10-16Merge branch 'groff_reader' of https://github.com/Yanpas/pandoc into ↵John MacFarlane1-0/+83
Yanpas-groff_reader
2018-10-17added old-style testYan Pas1-1/+1
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 Pas8-12/+207