aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Muse.hs
AgeCommit message (Collapse)AuthorFilesLines
2019-11-12Switch to new pandoc-types and use Text instead of String [API change].despresc1-69/+75
PR #5884. + Use pandoc-types 1.20 and texmath 0.12. + Text is now used instead of String, with a few exceptions. + In the MediaBag module, some of the types using Strings were switched to use FilePath instead (not Text). + In the Parsing module, new parsers `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`, `many1Till`, `manyUntil`, `mantyUntilChar` have been added: these are like their unsuffixed counterparts but pack some or all of their output. + `glob` in Text.Pandoc.Class still takes String since it seems to be intended as an interface to Glob, which uses strings. It seems to be used only once in the package, in the EPUB writer, so that is not hard to change.
2019-10-15Muse reader: do not allow closing asterisks to be followed by "*"Alexander Krotov1-2/+7
2019-10-15Muse reader: do not split series of asterisks into symbols and emphasisAlexander Krotov1-0/+7
Fixes #5821
2019-10-15Muse reader: do not terminate emphasis on "*" not followed by spaceAlexander Krotov1-2/+1
2019-10-04Fix all hlint warnings in Muse readerAlexander Krotov1-2/+2
2019-09-28Use Prelude.fail to avoid ambiguity with fail from GHC.Base.John MacFarlane1-2/+2
2019-08-26Use parseFromString' in Muse reader.John MacFarlane1-1/+1
Now that it is polymorphic, this is possible, and it's a better choice because it resets last string pos.
2019-08-26Fix inline parsing in grid table cells.John MacFarlane1-1/+1
* T.P.Parsing: Change type of `setLastStrPos` so it takes a `Maybe SourcePos` rather than a `SourcePos`. [API change] * T.P.Parsing: Make `parseFromString'` and `gridTableWith` and `gridTableWith'` polymorphic in the parser state, constraining it with `HasLastStrPosition`. [API change] Closes #5708.
2019-07-14Muse: add RTL supportAlexander Krotov1-0/+12
Closes #5551
2019-05-25Muse reader: allow images inside link descriptionsAlexander Krotov1-5/+4
2019-03-01Remove license boilerplate.John MacFarlane1-18/+0
The haddock module header contains essentially the same information, so the boilerplate is redundant and just one more thing to get out of sync.
2019-02-18hlint MuseAlexander Krotov1-1/+1
2019-02-18Muse reader: add secondary note supportAlexander Krotov1-5/+11
2019-02-04Add missing copyright notices and remove license boilerplate (#5112)Albert Krewinkel1-2/+2
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.
2018-12-31Remove unused HasHeaderMap (#5175)Alexander1-6/+0
It is updated by some readers, but never actually used.
2018-11-14Muse reader: trim whitespace before parsing grid table cellsAlexander Krotov1-2/+2
2018-11-14Muse reader: add grid tables supportAlexander Krotov1-2/+31
2018-10-28Muse reader: try to parse lists before trying to parse tableAlexander Krotov1-3/+3
This ensures that tables inside lists are parsed correctly.
2018-10-27Muse reader: forbid whitespace after opening and before closing markup elementsAlexander Krotov1-4/+16
See https://github.com/melmothx/text-amuse/issues/44 for discussion on these rules
2018-10-26Muse reader: parse page breaksAlexander Krotov1-1/+9
2018-10-24Muse reader: simplify museToPandocTableAlexander Krotov1-6/+4
to get rid of partial functions (head, tail, maximum)
2018-10-22Muse reader internals: remove unnecessary "skipSpaces"Alexander Krotov1-1/+1
2018-10-22Muse reader: allow footnotes to start with empty lineAlexander Krotov1-2/+3
A space character was required after footnote marker, now newline is allowed.
2018-10-21Muse reader: make sure that the whole text is parsedAlexander Krotov1-0/+1
2018-10-21Muse reader: allow empty headersAlexander Krotov1-7/+1
Previously empty headers caused parser to terminate without parsing the rest of the document.
2018-10-17Muse reader: allow examples to be indented with tabsAlexander Krotov1-8/+5
2018-10-17Muse reader: remove indentation from examples indicated by {{{ and }}}Alexander Krotov1-4/+7
2018-10-16Muse reader: simplify "atStart"Alexander Krotov1-5/+6
2018-10-16Muse reader: code cleanupAlexander Krotov1-33/+29
2018-10-16Muse reader: simplify "commonPrefix" implementationAlexander Krotov1-5/+1
2018-10-16Muse reader: simplify emphasis parsingAlexander Krotov1-17/+7
2018-10-11Muse reader internals: don't use "choice" with static listAlexander Krotov1-18/+16
2018-10-11Muse reader: use indentWith to parse indentationAlexander Krotov1-2/+2
2018-10-11Muse reader: move museInPara from state to environmentAlexander Krotov1-34/+25
2018-10-10Muse reader internals: merge link and explicit link parsers into one functionAlexander Krotov1-13/+5
2018-10-10Muse reader: rewrite code parser in applicative styleAlexander Krotov1-8/+5
2018-10-10Muse reader: fix parsing of empty cellsAlexander Krotov1-1/+1
2018-10-10Muse reader: simplify table parsingAlexander Krotov1-10/+6
2018-10-09Get rid of mapLeft in Muse readerAlexander Krotov1-3/+3
2018-10-09Muse reader: rewrite parseHtmlContent, verseTag and lineBlock in applicative ↵Alexander Krotov1-18/+12
style
2018-10-09Get rid of unnecessary bind "res"Alexander Krotov1-2/+1
2018-10-06Moved Haddock comment in Muse readerAlexander Krotov1-4/+3
2018-10-05Fixed haddock error in Muse reader.John MacFarlane1-1/+2
2018-10-05Muse reader: remove redundant bracketAlexander Krotov1-1/+1
2018-10-05Muse reader: move museInLink state into ReaderTAlexander Krotov1-11/+14
2018-10-05Muse reader: use getIndent more for code cleanupAlexander Krotov1-7/+4
2018-10-05Muse reader: use getIndent in parseHtmlContentAlexander Krotov1-7/+6
2018-10-05Muse reader: make bulletListUntil similar to definitionListUntilAlexander Krotov1-2/+1
2018-10-05Muse reader: reduce duplication by introducing `getIndent`Alexander Krotov1-9/+7
2018-10-05Muse reader internals: simplify parseMuseAlexander Krotov1-6/+2