aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers
AgeCommit message (Collapse)AuthorFilesLines
2017-12-13Docx writer: Add tests for list continuation.Jesse Rosenthal1-0/+8
2017-12-06hlint Muse reader and testsAlexander Krotov1-4/+4
2017-12-06Muse reader: add test for #disable-tables directive in Emacs modeAlexander Krotov1-7/+13
2017-12-06Muse reader: don't allow emphasis to be preceded by letterAlexander Krotov1-0/+4
2017-12-04Add `empty_paragraphs` extension.John MacFarlane1-20/+7
* Deprecate `--strip-empty-paragraphs` option. Instead we now use an `empty_paragraphs` extension that can be enabled on the reader or writer. By default, disabled. * Add `Ext_empty_paragraphs` constructor to `Extension`. * Revert "Docx reader: don't strip out empty paragraphs." This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b. * Implement `empty_paragraphs` extension in docx reader and writer, opendocument writer, html reader and writer. * Add tests for `empty_paragraphs` extension.
2017-12-04Muse reader: add underline support in Emacs Muse modeAlexander Krotov1-0/+4
2017-12-02Docx reader: don't strip out empty paragraphs.John MacFarlane1-7/+20
We now have the `--strip-empty-paragraphs` option for that, if you want it. Closes #2252. Updated docx reader tests. We use stripEmptyParagraphs to avoid changing too many tests. We should add new tests for empty paragraphs.
2017-11-29Muse reader: correctly remove indentation from notesAlexander Krotov1-0/+8
Exactly one space is required and considered to be part of the marker.
2017-11-28Temporarily disable round-trip block test for muse reader.John MacFarlane1-4/+6
See #4107.
2017-11-27Muse reader: parse "~~" as non-breaking space in Emacs modeAlexander Krotov1-0/+3
2017-11-27Muse reader: make code blocks round tripAlexander Krotov1-5/+25
2017-11-26Muse reader: drop common space prefix from list itemsAlexander Krotov1-0/+18
2017-11-26Muse reader: Add partial round trip testAlexander Krotov1-1/+28
2017-11-25Muse reader: don't interpret XML entitiesAlexander Krotov1-0/+2
2017-11-24Muse reader: parse markup in definition list termsAlexander Krotov1-0/+2
2017-11-24Muse reader: allow definition to end with EOFAlexander Krotov1-0/+2
2017-11-24Muse: move inline list normalization to writerAlexander Krotov1-2/+0
2017-11-22Org reader: allow empty list itemsAlbert Krewinkel1-0/+12
Fixes: #4090
2017-11-22Muse reader: allow list items to be emptyAlexander Krotov1-0/+21
2017-11-22Muse reader: add ordered list testAlexander Krotov1-12/+24
2017-11-22Muse reader: add more multiline definition testsAlexander Krotov1-0/+25
2017-11-22Muse reader: concatenate inlines of the same typeAlexander Krotov1-0/+2
2017-11-22Muse writer: escape only </code> inside code tagAlexander Krotov1-0/+2
Additional <verbatim> is not needed as <code> is verbatim already.
2017-11-21Muse reader: add inline <literal> supportAlexander Krotov1-0/+9
2017-11-21Muse reader: test <literal> blocksAlexander Krotov1-0/+14
2017-11-19Muse reader: count only one space as part of list item markerAlexander Krotov1-22/+36
2017-11-19Muse reader: produce SoftBreaks on newlinesAlexander Krotov1-13/+13
Now wrapping can be preserved with --wrap=preserve
2017-11-18Muse reader: Add Text::Amuse footnote extensionsAlexander Krotov1-0/+37
Footnote end is indicated by indentation, so footnotes can be placed anywhere in the text, not just at the end of it.
2017-11-13Replace "emacs" extension with "amuse" extensionAlexander Krotov1-8/+4
It makes clear that extension is related to Muse markup.
2017-11-12Muse reader: accept Emacs Muse definition listsAlexander Krotov1-0/+12
Emacs Muse does not require indentation.
2017-10-31Creole reader: additional test on nowiki-block after para.Sascha Wilde1-1/+4
2017-10-31Creole reader: fixed lists with trailing white space.Sascha Wilde1-0/+10
2017-10-29Export all of Text.Pandoc.Class from Text.Pandoc.John MacFarlane2-2/+0
2017-10-27Automatic reformating by stylish-haskell.John MacFarlane4-10/+10
2017-10-27Removed old adjacent_links test for docx reader.John MacFarlane1-4/+0
See #2270 for background -- this test blocked the consistent underline change and was hard to revise, so for now we are removing it.
2017-10-27Consistent underline for Readers (#2270)hftf2-2/+8
* Added underlineSpan builder function. This can be easily updated if needed. The purpose is for Readers to transform underlines consistently. * Docx Reader: Use underlineSpan and update test * Org Reader: Use underlineSpan and add test * Textile Reader: Use underlineSpan and add test case * Txt2Tags Reader: Use underlineSpan and update test * HTML Reader: Use underlineSpan and add test case
2017-10-26Creole reader (#3994)Sascha Wilde1-0/+273
This is feature complete but not very thoroughly tested yet.
2017-10-17Latex reader: Skip spaces in image optionsBen Firshman1-0/+3
2017-10-17Add tests for existing \includegraphics behaviourBen Firshman1-0/+24
2017-10-08Org reader: end footnotes after two blank linesAlbert Krewinkel1-59/+74
Footnotes can not only be terminated by the start of a new footnote or a header, but also by two consecutive blank lines.
2017-10-06LaTeX reader: read polyglossia/babel \text($LANG){...}.bucklereed1-0/+20
2017-10-02Org reader: support `\n` export optionAlbert Krewinkel1-0/+7
The `\n` export option turns all newlines in the text into hard linebreaks. Closes #3950
2017-09-30Removed writerSourceURL, add source URL to common state.John MacFarlane2-8/+4
Removed `writerSourceURL` from `WriterOptions` (API change). Added `stSourceURL` to `CommonState`. It is set automatically by `setInputFiles`. Text.Pandoc.Class now exports `setInputFiles`, `setOutputFile`. The type of `getInputFiles` has changed; it now returns `[FilePath]` instead of `Maybe [FilePath]`. Functions in Class that formerly took the source URL as a parameter now have one fewer parameter (`fetchItem`, `downloadOrRead`, `setMediaResource`, `fillMediaBag`). Removed `WriterOptions` parameter from `makeSelfContained` in `SelfContained`.
2017-09-28Muse reader: parse anchorsAlexander Krotov1-0/+20
2017-09-26Muse reader: test metadata parsingAlexander Krotov1-0/+7
2017-09-25Org reader: update emphasis border charsAlbert Krewinkel1-9/+9
The org reader was updated to match current org-mode behavior: the set of characters which are acceptable to occur as the first or last character in an org emphasis have been changed and now allows all non-whitespace chars at the inner border of emphasized text (see `org-emphasis-regexp-components`). Fixes: #3933
2017-09-11Merge pull request #3911 from labdsf/muse-reader-bracesJohn MacFarlane1-0/+33
Muse reader: parse {{{ }}} example syntax
2017-09-11Muse reader: allow inline markup to be followed by punctuationAlexander Krotov1-2/+18
Previously code was not allowed to be followed by comma, and emphasis was allowed to be followed by letter.
2017-09-11Muse reader: parse {{{ }}} example syntaxAlexander Krotov1-0/+33
2017-09-11Muse reader: parse verbatim tagAlexander Krotov1-0/+2