aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2017-10-31Fixed regression in parsing of HTML comments in markdown...John MacFarlane1-2/+3
and other non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`). The parser stopped at the first `>` character, even if it wasn't the end of the comment. Closes #4019.
2017-11-01Merge pull request #4018 from swilde/creole-fixesJohn MacFarlane1-5/+7
Creole Reader: fix lists with triling white space
2017-10-31Creole reader: fixed some minor typos and formatting.Sascha Wilde1-4/+5
2017-10-31Add Millimeter constructor to Dimension in ImageSize.John MacFarlane1-1/+6
Minor API change. Now sizes given in 'mm' are no longer converted to 'cm'. Closes #4012.
2017-10-31LaTeX reader: handle `%` comment right after command.John MacFarlane1-1/+1
For example \emph% {hi}
2017-10-31LaTeX/Beamer writer: support "blocks" inside columns and other Divs.John MacFarlane1-0/+4
Example: ``` <div class="columns"> <div class="column" width="40%"> - Item </div> <div class="column" width="60%"> - Item </div> </div> ``` Closes #4016.
2017-10-31Markdown reader: make sure fenced div closers work in lists.John MacFarlane2-4/+12
Previously the following failed: ::: {.class} 1. one 2. two ::: and you needed a blank line before the closing `:::`.
2017-10-31Make `fenced_divs` affect the Markdown writer.John MacFarlane1-5/+13
If `fenced_divs` is enabled, fenced divs will be used.
2017-10-31Creole reader: fixed lists with trailing white space.Sascha Wilde1-1/+2
2017-10-31FB2 writer: write blocks outside of <p> in definitionsAlexander Krotov1-18/+2
2017-10-31HTML Writer: consistently use dashed class-namesmb211-3/+3
see #3556
2017-10-31FB2 writer: make bullet lists consistent with ordered listsAlexander Krotov1-8/+4
Previously bullet lists interacted in odd way with ordered lists. For example, bullet lists nested in ordered list had incorrect indentation. Besides that, indentation with spaces is not rendered by FBReader and fbless. To avoid this problem, bullet lists are indented by appending bullets to marker just the same way it is done for ordered lists.
2017-10-30EPUB writer: fixed filepaths for nonstandard epub-subdirectory values.John MacFarlane1-16/+23
2017-10-30EPUB writer fixes:John MacFarlane2-24/+33
- Ensure that epub2 is recognized as a non-text format, so that a template is used. - Don't include "prefix" attribute for ibooks for epub2. It doesn't validate. - Fix stylesheet paths; previously we had an incorrect stylesheet path for the cover page and nav page.
2017-10-30LaTeX reader: insert space when needed in macro expansion.John MacFarlane1-1/+8
Sometimes we need to insert a space after a control sequence to prevent it merging with a following letter. Closes #4007.
2017-10-30Allow unbraced arguments for macros.John MacFarlane1-8/+8
See #4007.
2017-10-30Allow body of macro definition to be unbraced.John MacFarlane1-7/+10
e.g. \newcommand\arrow\to See #4007.
2017-10-29Fixed warnings.John MacFarlane1-5/+0
2017-10-29Export all of Text.Pandoc.Class from Text.Pandoc.John MacFarlane2-6/+1
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