summaryrefslogtreecommitdiff
path: root/test/Tests/Readers/Muse.hs
Commit message (Collapse)AuthorAge
* Muse reader: fix indentation requirements for footnote continuationsAlexander Krotov2018-03-03
|
* Muse reader: enable <literal> tags even if amuse extension is enabledAlexander Krotov2018-03-02
| | | | | | Amusewiki disables <literal> tags for security reasons. If user wants similar behavior in pandoc, RawBlocks and RawInlines can be removed or replaced with filters.
* Muse reader: do not consume whitespace while looking for closing end tagAlexander Krotov2018-03-02
| | | | Fix for a bug caught by round-trip test.
* Muse reader: convert alphabetical list markers to decimal in round-trip testAlexander Krotov2018-03-02
| | | | | | 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.
* Muse reader: add test for verse tag with one empty lineAlexander Krotov2018-02-28
|
* Muse reader: allow <quote> and other tags to be indentedAlexander Krotov2018-02-28
|
* Muse reader: allow single colon in definition list termAlexander Krotov2018-02-24
|
* Muse reader: improve verse parsingAlexander Krotov2018-02-23
| | | | | Now verse marked up with ">" (in contrast to <verse> tag) can be placed inside lists.
* Muse reader: prioritize lists with roman numerals over alphabetical listsAlexander Krotov2018-02-16
| | | | | This is to make sure "i." starts a roman numbered list, instead of a list with letter "i" (followed by "j", "k", ...").
* Muse reader: fix directive parsingAlexander Krotov2018-02-15
| | | | This fixes bugs introduced in commit 4bfab8f04c105f111d8d4e1c3ed7f7b5c75dbd19.
* Muse reader: parse definition lists with multiple descriptionsAlexander Krotov2018-02-13
|
* Muse reader: refactor to avoid reparsingAlexander Krotov2018-02-12
| | | | | | | | | 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.
* Muse reader: paragraph indentation does not indicate nested quoteAlexander Krotov2018-02-12
| | | | | | | | | | 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.
* Muse reader: test empty quote tagAlexander Krotov2018-02-11
|
* Muse reader: require that block tags are on separate linesAlexander Krotov2018-02-11
| | | | | | | | 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.
* Muse reader: test that two blank lines after verse can separate list itemsAlexander Krotov2018-02-05
| | | | | Unlike paragraph and <quote> tag parsers, verse parser consumes newline. For this reason only three or more blank lines can separate list items.
* Muse reader: test that lists can be separated with two blanklines after ↵Alexander Krotov2018-02-05
| | | | | | blockquote Existing tests only checked this for paragraphs.
* Muse reader: fix parsing of trailing whitespaceAlexander Krotov2018-01-28
| | | | | Newline after whitespace now results in softbreak instead of space.
* Muse reader: fix matching of closing inline tagsAlexander Krotov2018-01-24
|
* Muse reader: remove multiple descriptions during round-trip testsAlexander Krotov2018-01-20
|
* Muse reader: enable definition lists in round-trip testAlexander Krotov2018-01-20
|
* hlint code improvements.John MacFarlane2018-01-19
|
* Muse reader: fix parsing of nested definition listsAlexander Krotov2018-01-20
|
* Muse reader: require only one space for nested definition list indentationAlexander Krotov2018-01-19
|
* Muse reader: parse definition list terms without parseFromStringAlexander Krotov2018-01-19
|
* Muse reader: fix parsing of code at the beginning of paragraphAlexander Krotov2018-01-18
|
* Muse reader: refactor definition list parsingAlexander Krotov2018-01-18
| | | | | | | 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.
* Muse reader: parse "~~" as non-breaking space in Text::Amuse modeAlexander Krotov2018-01-18
| | | | Latest Text::Amuse supports "~~"
* Muse reader: refactor list parsingAlexander Krotov2018-01-18
| | | | | | | | | | | | | 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.
* Muse reader: enable round trip testAlexander Krotov2017-12-30
| | | | Closes #4107
* Muse reader: parse anchors immediately after headings as IDsAlexander Krotov2017-12-21
|
* Muse reader: require that note references does not start with 0Alexander Krotov2017-12-20
|
* Muse reader: parse empty comments correctlyAlexander Krotov2017-12-19
|
* hlint Muse reader and testsAlexander Krotov2017-12-06
|
* Muse reader: add test for #disable-tables directive in Emacs modeAlexander Krotov2017-12-06
|
* Muse reader: don't allow emphasis to be preceded by letterAlexander Krotov2017-12-06
|
* Muse reader: add underline support in Emacs Muse modeAlexander Krotov2017-12-04
|
* Muse reader: correctly remove indentation from notesAlexander Krotov2017-11-29
| | | | Exactly one space is required and considered to be part of the marker.
* Temporarily disable round-trip block test for muse reader.John MacFarlane2017-11-28
| | | | See #4107.
* Muse reader: parse "~~" as non-breaking space in Emacs modeAlexander Krotov2017-11-27
|
* Muse reader: make code blocks round tripAlexander Krotov2017-11-27
|
* Muse reader: drop common space prefix from list itemsAlexander Krotov2017-11-26
|
* Muse reader: Add partial round trip testAlexander Krotov2017-11-26
|
* Muse reader: don't interpret XML entitiesAlexander Krotov2017-11-25
|
* Muse reader: parse markup in definition list termsAlexander Krotov2017-11-24
|
* Muse reader: allow definition to end with EOFAlexander Krotov2017-11-24
|
* Muse: move inline list normalization to writerAlexander Krotov2017-11-24
|
* Muse reader: allow list items to be emptyAlexander Krotov2017-11-22
|
* Muse reader: add ordered list testAlexander Krotov2017-11-22
|
* Muse reader: add more multiline definition testsAlexander Krotov2017-11-22
|