aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
AgeCommit message (Collapse)AuthorFilesLines
2018-05-26nested listsYan Pas1-52/+84
2018-05-26escape chars in macrosYan Pas1-49/+66
2018-05-23tests, parsing fixesYan Pas1-16/+19
2018-05-20listsYan Pas1-4/+20
2018-05-20links, specialcharsYan Pas1-39/+65
2018-05-20rename compile to parse, parse to lexYan Pas1-57/+57
2018-05-20states, code block compilingYan Pas1-35/+62
2018-05-20compiling paragraphsYan Pas1-55/+124
2018-05-19tokenisationYan Pas1-131/+175
2018-05-12Merge branch 'master' into groff_readerYan Pas1-6/+7
2018-05-09Org reader: fix image filename recognitionAlbert Krewinkel1-6/+7
Use a function from the *filepath* library to check whether a string is a valid file name. The custom validity checker that was used before gave wrong results, e.g. for absolute file paths on Windows (kawabata/ox-pandoc#52).
2018-05-09fix build and testsYan Pas1-0/+1
2018-05-09Merge branch 'master' into groff_readerYan Pashkovsky50-525/+1287
2018-05-09remove debug codeYan Pas1-35/+12
2018-05-09codeblock handlingYan Pas1-21/+61
2018-05-09links, paragraphs, codeblocksYan Pas1-33/+66
2018-05-09basic manfile parsingYan Pas1-63/+178
2018-05-08LaTeX reader: handle `$` in `/text{..}` inside math.John MacFarlane1-7/+22
This fixes the main problem in #4576. There is still an issue about `\SI`, but that's a separate issue.
2018-05-07Use Data.Maybe.fromMaybeAlexander Krotov1-6/+3
2018-05-03Relicense TikiWiki reader as GPL v2 or above, like rest of pandoc.John MacFarlane1-1/+1
Author has given permission in an email, 3 May 2018. See #4591.
2018-04-28FB2 reader: replace some errors with warningsAlexander Krotov1-9/+11
Now FB2 reader can read writer.fb2, which does not validate (yet).
2018-04-26Add FB2 reader (#4539)Alexander1-0/+402
2018-04-26RST reader: fix anonymous redirects with backticks.John MacFarlane1-3/+8
Closes #4598.
2018-04-26DocBook Reader: Read Latex math as output by asciidoctor (#4569)Joe Hermaszewski1-11/+48
2018-04-26Muse reader: allow nested footnotesAlexander Krotov1-1/+1
2018-04-26Muse reader: use Data.Map.member instead of lookupAlexander Krotov1-3/+3
2018-04-25LaTeX reader: fixed previous commit.John MacFarlane1-3/+3
2018-04-25LaTeX reader: Improve handling of raw LaTeX (for markdown etc.).John MacFarlane1-31/+32
Previously there were some bugs in how macros were handled. Closes #4589, #4594.
2018-04-25LaTeX reader: support `\MakeUppercase`, `\MakeLowercase'.John MacFarlane1-1/+17
Also `\MakeTextUppercase`, `\MakeTextLowercase` from textcase and `\uppercase`, `\lowercase`. We don't mimic exactly the quirky semantic differences between these commands, but just uppercase/lowercase regular strings within them. We leave commands and code alone. Closes #4595.
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