aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/Muse.hs
AgeCommit message (Collapse)AuthorFilesLines
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 MacFarlane1-0/+2
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464.
2018-03-17hlint fixes.John MacFarlane1-1/+1
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.
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-28Muse reader: add test for verse tag with one empty lineAlexander Krotov1-0/+6
2018-02-28Muse reader: allow <quote> and other tags to be indentedAlexander Krotov1-0/+6
2018-02-24Muse reader: allow single colon in definition list termAlexander Krotov1-0/+3
2018-02-23Muse reader: improve verse parsingAlexander Krotov1-0/+11
Now verse marked up with ">" (in contrast to <verse> tag) can be placed inside lists.
2018-02-16Muse reader: prioritize lists with roman numerals over alphabetical listsAlexander Krotov1-0/+12
This is to make sure "i." starts a roman numbered list, instead of a list with letter "i" (followed by "j", "k", ...").
2018-02-15Muse reader: fix directive parsingAlexander Krotov1-0/+15
This fixes bugs introduced in commit 4bfab8f04c105f111d8d4e1c3ed7f7b5c75dbd19.
2018-02-13Muse reader: parse definition lists with multiple descriptionsAlexander Krotov1-7/+20
2018-02-12Muse reader: refactor to avoid reparsingAlexander Krotov1-1/+40
Lists are parsed in linear instead of exponential time now. Contents of block tags, such as <quote>, is parsed directly, without storing it in a string and parsing with parseFromString. Fixed a bug: headers did not terminate lists.
2018-02-12Muse reader: paragraph indentation does not indicate nested quoteAlexander Krotov1-0/+6
Muse allows indentation to indicate quotation or alignment, but only on the top level, not within a <quote> or list. This patch also simplifies the code by removing museInQuote and museInList fields from the state structure. Headers and indented paragraphs are attempted to be parsed only at the topmost level, instead of aborting parsing with guards.
2018-02-11Muse reader: test empty quote tagAlexander Krotov1-0/+5
2018-02-11Muse reader: require that block tags are on separate linesAlexander Krotov1-19/+26
Text::Amuse already explicitly requires it anyway. Supporting block tags on the same line as contents makes it hard to combine closing tag parsers with indentation parsers. Being able to combine parsers is required for no-reparsing refactoring of Muse reader.
2018-02-05Muse reader: test that two blank lines after verse can separate list itemsAlexander Krotov1-0/+21
Unlike paragraph and <quote> tag parsers, verse parser consumes newline. For this reason only three or more blank lines can separate list items.
2018-02-05Muse reader: test that lists can be separated with two blanklines after ↵Alexander Krotov1-0/+27
blockquote Existing tests only checked this for paragraphs.
2018-01-28Muse reader: fix parsing of trailing whitespaceAlexander Krotov1-0/+6
Newline after whitespace now results in softbreak instead of space.
2018-01-24Muse reader: fix matching of closing inline tagsAlexander Krotov1-0/+3
2018-01-20Muse reader: remove multiple descriptions during round-trip testsAlexander Krotov1-0/+6
2018-01-20Muse reader: enable definition lists in round-trip testAlexander Krotov1-3/+2
2018-01-19hlint code improvements.John MacFarlane1-3/+3
2018-01-20Muse reader: fix parsing of nested definition listsAlexander Krotov1-1/+11
2018-01-19Muse reader: require only one space for nested definition list indentationAlexander Krotov1-0/+3
2018-01-19Muse reader: parse definition list terms without parseFromStringAlexander Krotov1-0/+2
2018-01-18Muse reader: fix parsing of code at the beginning of paragraphAlexander Krotov1-0/+3
2018-01-18Muse reader: refactor definition list parsingAlexander Krotov1-11/+0
Test with wrong indentation is removed, because now it is parsed as nested lists. Emacs Muse and Text::Amuse don't have the same behavior anyway.
2018-01-18Muse reader: parse "~~" as non-breaking space in Text::Amuse modeAlexander Krotov1-2/+2
Latest Text::Amuse supports "~~"
2018-01-18Muse reader: refactor list parsingAlexander Krotov1-17/+52
Now list item contents is parsed as blocks, without resorting to parseFromString. Only the first line of paragraph has to be indented now, just like in Emacs Muse and Text::Amuse. Definition lists are not refactored yet. See also: issue #3865.
2017-12-30Muse reader: enable round trip testAlexander Krotov1-10/+9
Closes #4107
2017-12-21Muse reader: parse anchors immediately after headings as IDsAlexander Krotov1-0/+12
2017-12-20Muse reader: require that note references does not start with 0Alexander Krotov1-0/+14
2017-12-19Muse reader: parse empty comments correctlyAlexander Krotov1-0/+2
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-04Muse reader: add underline support in Emacs Muse modeAlexander Krotov1-0/+4
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.