John MacFarlane
0b0a0e730f
Removed some redundant class constraints.
2016-07-14 08:54:06 -07:00
John MacFarlane
536b6bf538
Implemented SoftBreak and new --wrap
option.
...
Added threefold wrapping option.
* Command line option: deprecated `--no-wrap`, added
`--wrap=[auto|none|preserve]`
* Added WrapOption, exported from Text.Pandoc.Options
* Changed type of writerWrapText in WriterOptions from
Bool to WrapOption.
* Modified Text.Pandoc.Shared functions for SoftBreak.
* Supported SoftBreak in writers.
* Updated tests.
* Updated README.
Closes #1701 .
2015-12-11 23:55:08 -08:00
John MacFarlane
23b693c029
Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."
...
This reverts commit c423dbb5a3
.
2015-11-09 10:08:22 -08:00
John MacFarlane
c423dbb5a3
Use -XNoImplicitPrelude and 'import Prelude' explicitly.
...
This is needed for ghci to work with pandoc, given that we
now use a custom prelude.
Closes #2503 .
2015-11-08 16:56:59 -08:00
Neil Mayhew
ccbf4fc9c2
Distinguish tight and loose lists in Docbook output
...
Determined by the first block of the first item being Plain.
2014-05-03 18:37:02 -07:00
Neil Mayhew
f22ce4ff28
Add some unit tests for Writers.Docbook
...
These are primarily aimed at testing the new treatment of line breaks,
but hopefully other tests can be added more easily now as features
and changes are implemented in the writer.
Adapted from Tests.Writers.HTML.tests.
2014-04-12 09:18:09 -06:00