aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Writers/Muse.hs
AgeCommit message (Collapse)AuthorFilesLines
2018-04-16Muse writer: escape definition list terms starting with list markersAlexander Krotov1-0/+9
2018-04-15Muse writer: escape strings starting with spaceAlexander Krotov1-0/+9
2018-04-10Muse writer: escape > less oftenAlexander Krotov1-0/+1
> should be escaped only when it can start verse, i.e., at the beginning of the line.
2018-04-09Muse writer: don't break headers, line blocks and tables with line breaksAlexander Krotov1-0/+2
2018-04-09Muse writer: correctly output empty headingsAlexander Krotov1-0/+1
2018-04-05Changes to tests to accommodate changes in pandoc-types.John MacFarlane1-2/+4
In https://github.com/jgm/pandoc-types/pull/36 we changed the table builder to pad cells. This commit changes tests (and two readers) to accord with this behavior.
2018-04-05Muse writer: escape horizontal rule only if at the beginning of the lineAlexander Krotov1-1/+3
2018-04-02Muse writer: place header IDs before headerAlexander Krotov1-2/+2
See https://github.com/melmothx/text-amuse/issues/39
2018-04-01Muse writer: only escape brackets when necessaryAlexander Krotov1-0/+3
It includes cases when they can be mistaken for footnotes and links, as well as inside link description.
2018-03-31Muse writer: do not escape list markers unless preceded by spaceAlexander Krotov1-0/+1
2018-03-28Muse writer: escape semicolons and markers after line breakAlexander Krotov1-0/+1
2018-03-25Muse writer: escape ordered list markersAlexander Krotov1-4/+5
Also reduced amount of <verbatim> tags in output to avoid escaping every "-" and word that ends in a full stop.
2018-03-25Muse writer: enable --wrap=preserve for all tests by defaultAlexander Krotov1-5/+5
2018-03-25Muse writer: improve span writingAlexander Krotov1-2/+8
Test more cases when span has or hasn't anchor, class and contents in different combinations.
2018-03-25Muse writer: do not join Span's doing normalizationAlexander Krotov1-0/+3
Separate spans may have different semantics, for example if spans indicate syllables in a word.
2018-03-21Muse writer: don't align ordered list itemsAlexander Krotov1-6/+6
It leads to problems with round-trip test, because aligned line blocks can't be read back.
2018-03-20Muse writer: escape "]" in image titleAlexander Krotov1-0/+1
2018-03-20Muse writer: escape ";" to avoid accidental commentsAlexander Krotov1-0/+1
2018-03-20Muse writer: escape "]" brackets in URLs as "%5D"Alexander Krotov1-0/+15
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-12Muse writer: support spans with anchorsAlexander Krotov1-1/+5
2018-03-07Muse writer: replace smallcaps with emphasis before normalizationAlexander Krotov1-0/+1
2018-03-07Muse writer: output smallcaps as emphasisAlexander Krotov1-1/+1
2018-03-07Muse writer: write empty inline lists as <verbatim></verbatim>Alexander Krotov1-0/+9
2018-03-07Muse writer: escape "-" to avoid creating bullet listsAlexander Krotov1-0/+9
2018-03-06Muse writer: fix math expansion for more than one expression per paragraphAlexander Krotov1-0/+1
2018-03-05Muse writer: expand math before inline list normalizationAlexander Krotov1-0/+1
2018-03-02Muse writer: join strings during inline normalizationAlexander Krotov1-0/+1
2018-02-28Muse writer: change verse markupAlexander Krotov1-5/+3
Use "> " instead of <verse> tag
2018-02-28Muse writer: remove empty strings during inline normalizationAlexander Krotov1-0/+1
2018-02-23Muse writer: don't indent nested definition listsAlexander Krotov1-2/+2
2018-02-15Muse writer: use unicode quotes for quoted textAlexander Krotov1-4/+4
2018-02-03Muse writer: write image width specified in percent in Text::Amuse modeAlexander Krotov1-0/+3
2018-01-30Muse writer: don't wrap displayMath into <verse>Alexander Krotov1-1/+1
<verse> is a block tag and displayMath is an inline element. Writing <verse> around displayMath could result in nested <verse> tags.
2018-01-29Muse writer: escape nonbreaking space ("~~")Alexander Krotov1-0/+1
2018-01-22Muse writer: join code with different attributes during normalizationAlexander Krotov1-0/+1
2018-01-22Muse writer: indent lists inside DivAlexander Krotov1-1/+3
2018-01-19Muse writer: support definitions with multiple descriptionsAlexander Krotov1-2/+11
Muse reader does not support this syntax yet, but Emacs Muse parses it correctly.
2017-12-21Muse reader: parse anchors immediately after headings as IDsAlexander Krotov1-0/+5
2017-11-24Muse writer: test that inline math conversion result is normalizedAlexander Krotov1-0/+1
Without normalization this test produced <em>a</em><em>b</em><em>c</em>
2017-11-24Muse: move inline list normalization to writerAlexander Krotov1-0/+1
2017-11-22Muse writer: escape hash symbolAlexander Krotov1-0/+2
2017-11-22Muse writer: escape "----" to avoid accidental horizontal rulesAlexander Krotov1-0/+1
2017-11-22Muse writer: escape only </code> inside code tagAlexander Krotov1-2/+1
Additional <verbatim> is not needed as <code> is verbatim already.
2017-11-13Replace "emacs" extension with "amuse" extensionAlexander Krotov1-1/+3
It makes clear that extension is related to Muse markup.
2017-10-27Automatic reformating by stylish-haskell.John MacFarlane1-1/+1
2017-08-08Muse writer: insert two blanklines between lists of the same type (#3844)Alexander1-0/+73
2017-07-12Muse writer: indent lists inside <quote> with at least one space (#3795)Alexander Krotov1-0/+11
2017-06-26Muse writer: fix hlint errors (#3764)Alexander Krotov1-2/+2
2017-06-11Switched Writer types to use Text.John MacFarlane1-1/+2
* XML.toEntities: changed type to Text -> Text. * Shared.tabFilter -- fixed so it strips out CRs as before. * Modified writers to take Text. * Updated tests, benchmarks, trypandoc. [API change] Closes #3731.