aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
AgeCommit message (Collapse)AuthorFilesLines
2018-04-25Added licensing headers for DocBook, EPUB, JATS, OPML readers.John MacFarlane4-1/+118
See #4592.
2018-04-22RST reader: allow < 3 spaces indent under directives.John MacFarlane1-3/+7
Closes #4579.
2018-04-21Markdown reader/writer: spacing adjustments in tables.John MacFarlane1-3/+8
* Markdown writer now includes a blank line at the end of the row in a single-row multiline table, to prevent it from being interpreted as a simple table. Closes #4578. * Markdown reader does a better job computing the relative width of the last column in a multiline table, so we can round-trip tables without constantly shrinking the last column.
2018-04-19Markdown reader: allow empty attributes.John MacFarlane1-0/+2
See #2944.
2018-04-19EPUB reader: fix images with space in file path.John MacFarlane1-2/+2
Closes #4344.
2018-04-19Muse reader: allow "-" in anchorsAlexander Krotov1-1/+1
2018-04-18Markdown reader: handle table w/o following blank line in fenced div.John MacFarlane1-3/+14
Closes #4560.
2018-04-17Docx reader: Combine codeBlocksJesse Rosenthal1-0/+4
This prevents a multiline codeblock in word from being read as different paragraphs. This takes place in the Combine module to occur during the normal combining of divs during conversion. Note that this specifies that the attributes of the `CodeBlock`s must be the same. The docx reader creates codeBlocks without attrs, so this is trivially satisified.
2018-04-16Markdown reader: remove "fallback" for doubleQuote parser.John MacFarlane1-4/+3
Previously the parser tried to be efficient -- if no end double quote was found, it would just return the contents. But this could backfire in a case like: **this should "be bold** since the fallback would return the content `"be bold**` and the closing boldface delimiter would never be encountered.
2018-04-16Muse reader: allow verse to be indentedAlexander Krotov1-0/+1
Muse writer indents verse blocks in definition list more than necessary, so Muse reader should parse them.
2018-04-16Muse reader code cleanupAlexander Krotov1-20/+9
2018-04-15Muse reader: don't allow footnote references inside linksAlexander Krotov1-0/+2
2018-04-15Muse reader: allow URL to be emptyAlexander Krotov1-1/+1
Muse writer can write links with empty URLs, so Muse reader should read them.
2018-04-15Muse reader: require that comment semicolons are in the first columnAlexander Krotov1-0/+1
Fixes #4551
2018-04-08DocBook reader: properly handle title in section element.John MacFarlane1-0/+1
Previously we just got `section_title` for section (though sect1, sect2, etc. were handled properly). Closes #4526.
2018-04-09Muse reader: add support for Text:Amuse multiline headingsAlexander Krotov1-9/+33
2018-04-09Muse reader: remove redundant bracketsAlexander Krotov1-1/+1
2018-04-08Muse reader: replace foldl with foldrAlexander Krotov1-7/+7
2018-04-08Muse reader: move F out of MuseTableElement definitionAlexander Krotov1-31/+23
2018-04-08Muse reader: document implementationAlexander Krotov1-93/+136
2018-04-07Muse reader: replace pattern matching with "when"Alexander Krotov1-7/+5
2018-04-07Muse reader: don't return link title from linkText parserAlexander Krotov1-6/+6
Title is always empty in Muse anyway.
2018-04-07Muse reader: add support for <biblio> and <play> tagsAlexander Krotov1-2/+15
2018-04-07Muse reader: replace returnF with return . returnAlexander Krotov1-1/+1
2018-04-05Changes to tests to accommodate changes in pandoc-types.John MacFarlane2-3/+9
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-05LaTEX reader: properly resolve section numbers with \ref and chapters.John MacFarlane1-1/+7
Closes #4529.
2018-04-03Muse reader: code cleanupAlexander Krotov1-34/+17
2018-04-03Muse reader: rewrite museOrderedListMarker without "do"Alexander Krotov1-10/+9
2018-04-03Muse reader: refactor parseAnchorAlexander Krotov1-3/+1
2018-04-03Muse reader: rewrite parseDirectiveKey without doAlexander Krotov1-3/+1
2018-04-02LaTeX reader: parse sloppypar environment (#4517)Marc Schreiber1-0/+1
2018-04-02Muse reader: add <math> tag supportAlexander Krotov1-0/+5
2018-04-02Muse writer: place header IDs before headerAlexander Krotov1-2/+2
See https://github.com/melmothx/text-amuse/issues/39
2018-03-30Textile reader: fixed tables with no body rows.John MacFarlane1-1/+1
Previously these raised an exception. Closes #4513.
2018-03-29Removed unused extensions (#4506)Anabra7-18/+10
2018-03-28Mediawiki reader: improve table parsing.John MacFarlane1-5/+18
This fixes detection of table attributes and also handles `!` characters in cells. Closes #4508.
2018-03-26Cleanup Muse reader and writerAlexander Krotov1-37/+19
2018-03-25Muse reader: allow links to have empty descriptionsAlexander Krotov1-1/+1
2018-03-25Muse reader: require block <literal> tags to be on separate linesAlexander Krotov1-2/+8
2018-03-18Removed unnecessary import.John MacFarlane1-2/+0
2018-03-18Removed old-locale flag and Text.Pandoc.Compat.Time.John MacFarlane1-1/+1
This is no longer necessary since we no longer support ghc 7.8.
2018-03-18Use NoImplicitPrelude and explicitly import Prelude.John MacFarlane49-4/+96
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464.
2018-03-17hlint fixes.John MacFarlane4-8/+8
2018-03-17Add support to parse unit string of \SI command (closes #4296).Marc Schreiber1-1/+14
2018-03-17More CSS around DocTable in Haddock reader.John MacFarlane1-0/+2
2018-03-16Allow earlier versions of haddock-library, use CPP.John MacFarlane1-0/+2
2018-03-16Better table handling for Haddock.John MacFarlane1-1/+14
In the reader, we use the new Table type in Haddock. Note that tables with col/rowspans will not translate well into Pandoc. In the writer, we now render tables always as grid tables, since Haddock supports these.
2018-03-16Monoid/Semiground cleanup relying on custom Prelude.John MacFarlane15-29/+5
2018-03-16Semigroup instance for Styles in T.P.Readers.Odt.StyleReader.John MacFarlane1-2/+12
2018-03-16Removed redundant import.John MacFarlane1-3/+1