aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2017-10-29Removed useless notes state in DokuWiki writer.John MacFarlane1-5/+2
2017-10-29Source code reformatting.John MacFarlane25-204/+202
2017-10-29hlint suggestions.John MacFarlane26-542/+527
2017-10-29More hlint.John MacFarlane3-33/+30
2017-10-29Small reformat.John MacFarlane1-1/+1
2017-10-29Use uncurry.John MacFarlane1-1/+1
2017-10-29More hlint fixes.John MacFarlane6-58/+54
2017-10-29Write FB2 lists without nesting blocks inside <p> (#4004)Alexander1-16/+32
According to FB2 XML schema <empty-line /> cannot be placed inside <p>. Linux FBReader can't display such paragraphs, e.g. any "loose" lists produced by pandoc prior to this commit. Besides that, FB2 writer placed <p> inside <p> when writing nested lists, this commit fixes the bug. Also this commit removes leading non-breaking space from ordered lists for consistency with bullet lists. Definition lists are not affected at all.
2017-10-28Fix warning for older GHC versions.John MacFarlane1-1/+1
2017-10-28Try to fix imports for older ghc.John MacFarlane1-1/+1
2017-10-28Change order of imports to satisfy older ghc.John MacFarlane1-1/+1
2017-10-27hlint suggestions.John MacFarlane32-339/+307
2017-10-27Don't rely on syb when we don't need to.John MacFarlane3-3/+3
2017-10-27hlint changes.John MacFarlane9-126/+118
2017-10-27hlint suggestions.John MacFarlane1-1/+1
2017-10-27hlint suggestions.John MacFarlane1-9/+8
2017-10-27hlint suggestions.John MacFarlane4-8/+7
2017-10-27Automatic reformating by stylish-haskell.John MacFarlane69-570/+576
2017-10-27Consistent underline for Readers (#2270)hftf6-9/+22
* Added underlineSpan builder function. This can be easily updated if needed. The purpose is for Readers to transform underlines consistently. * Docx Reader: Use underlineSpan and update test * Org Reader: Use underlineSpan and add test * Textile Reader: Use underlineSpan and add test case * Txt2Tags Reader: Use underlineSpan and update test * HTML Reader: Use underlineSpan and add test case
2017-10-26update years in copyrightKolen Cheung3-5/+5
2017-10-26Creole reader (#3994)Sascha Wilde2-0/+319
This is feature complete but not very thoroughly tested yet.
2017-10-26Comment reformat.John MacFarlane1-6/+4
2017-10-26makePDF: add argument for pdf options, remove writerPdfArgs.John MacFarlane3-19/+15
- Removed writerPdfArgs from WriterOptions (API change). - Added parameter for pdf args to makePDF.
2017-10-24Text.Pandoc.App: export applyFilters, applyLuaFilters. (API change)John MacFarlane1-0/+2
2017-10-24Added some haddock docs for Text.Pandoc.Class functions.John MacFarlane1-3/+22
2017-10-24HTML reader: close td/th should close any open block tag...John MacFarlane1-0/+2
Closes #3991.
2017-10-24HTML reader: td should close an open th or td.John MacFarlane1-0/+1
2017-10-24Revert "HTML reader: td or th implicitly closes blocks within last td/th."John MacFarlane1-5/+1
This reverts commit d2c4243f89a6368d4f9f8a511d9b026d0be19cd8.
2017-10-24HTML reader: td or th implicitly closes blocks within last td/th.John MacFarlane1-1/+5
2017-10-24Fenced divs: ensure that paragraph at end doesn't become Plain.John MacFarlane1-4/+9
Added test case.
2017-10-23Back to using [WARNING] and [INFO] to mark messages.John MacFarlane1-4/+2
2017-10-23Implemented fenced Divs.John MacFarlane3-0/+32
+ Added Ext_fenced_divs to Extensions (default for pandoc Markdown). + Document fenced_divs extension in manual. + Implemented fenced code divs in Markdown reader. + Added test. Closes #168.
2017-10-23HTML reader: `htmlTag` improvements.John MacFarlane1-8/+19
We previously failed on cases where an attribute contained a `>` character. This patch fixes the bug. Closes #3989.
2017-10-23More pleasing presentation of warnings and info messages.John MacFarlane1-4/+5
!! warning -- info
2017-10-23Downgraded SkippedContent and DocxParserWarning from WARNING to INFOJohn MacFarlane1-2/+2
2017-10-22LaTeX Reader: support \lettrinemb211-0/+1
2017-10-22LaTeX Reader: use opt function consistentlymb211-3/+3
2017-10-21In rendering PandocParsecError, only print input at error location...John MacFarlane1-1/+6
if the source name is `source` (i.e., the top level). Otherwise results will be misleading, since what readM does is to look up the source position of the error in the *original* input, which may not match the input used by parseFromString or in parsing from an included file. Closes #3865. Not a great fix, maybe there's something better that could be done, but this should at least avoid misleading messages.
2017-10-20SelfContained: data-background-image instead of data-background.John MacFarlane1-1/+1
Really closes #3979.
2017-10-19LaTeX reader: be more forgiving in parsing command options.John MacFarlane1-2/+2
This was needed, for example, to make some minted options work.
2017-10-19LaTeX reader: Strip off quotes in `\include` filenames.John MacFarlane1-1/+2
2017-10-19LaTeX reader: support `\expandafter`.John MacFarlane1-6/+19
Closes #3983.
2017-10-19LaTeX reader: handle `\DeclareRobustCommand`.John MacFarlane1-2/+3
Currently it's just treated as a synonym for `\newcommand`. Handles the second case mentioned in #3983.
2017-10-17Latex reader: Skip spaces in image optionsBen Firshman1-0/+2
2017-10-16SelfContained: handle data-background attribute on section.John MacFarlane1-2/+3
This should help with #3979. In my test, I got a data uri for data-background. But it didn't actually work in the browser (the background image didn't show). Not sure whether this is a problem in reveal.js or a problem in pandoc...
2017-10-16HTML writer: don't add data- prefix to unknown attributes beginning with data-.John MacFarlane1-0/+1
Or we'll get data-data-blah.
2017-10-16Improved handling of include files in LaTeX reader.John MacFarlane2-61/+81
Previously `\include` wouldn't work if the included file contained, e.g., a begin without a matching end. We've changed the Tok type so that it stores a full SourcePos, rather than just a line and column. So tokens keeep track of the file they came from. This allows us to use a simpler method for includes, which doesn't require parsing the included document as a whole. Closes #3971.
2017-10-16RST writer: correctly handle inline code containing backticks.John MacFarlane1-2/+7
(Use a :literal: role.) Closes #3974.
2017-10-16RST writer: don't backslash-escape word-internal punctuation.John MacFarlane1-15/+18
Closes #3978.
2017-10-15App: added --request-header option.John MacFarlane1-8/+17