summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Txt2Tags.hs
Commit message (Collapse)AuthorAge
* Fixed compiler warnings.John MacFarlane2016-07-14
|
* Modified readers to emit SoftBreak when appropriate.John MacFarlane2015-12-12
|
* Restored Text.Pandoc.Compat.Monoid.John MacFarlane2015-11-09
| | | | | | | | | | | | | | Don't use custom prelude for latest ghc. This is a better approach to making 'stack ghci' and 'cabal repl' work. Instead of using NoImplicitPrelude, we only use the custom prelude for older ghc versions. The custom prelude presents a uniform API that matches the current base version's prelude. So, when developing (presumably with latest ghc), we don't use a custom prelude at all and hence have no trouble with ghci. The custom prelude no longer exports (<>): we now want to match the base 4.8 prelude behavior.
* Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* More changes to avoid compiler warnings on ghc 7.10.John MacFarlane2015-10-14
| | | | | | * CPP around deprecated `parseTime`. * Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time, now exports Data.Time.
* Use custom Prelude to avoid compiler warnings.John MacFarlane2015-10-14
| | | | | | | | | | | | | - The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
* Change return type of Txt2Tags readerMatthew Pickering2015-02-18
|
* Added Text.Pandoc.Compat.Locale to assist with transition to time 1.5.John MacFarlane2014-12-19
|
* Txt2Tags Reader: Fixed crash when reading from stdinmpickering2014-08-21
|
* Txt2Tags Reader: Corrected formatting of %%mtime macrompickering2014-08-21
|
* Txt2Tags Reader: Parse Meta informationmpickering2014-08-21
| | | | | The header is now parsed as meta information. The first line is the `title`, the second is the `author` and third line is the `date`.
* Txt2Tags reader: Header is now parsed only if standalone flag is setmpickering2014-08-20
|
* getT2TMeta: Take list of source files instead of single.John MacFarlane2014-07-30
| | | | Get latest modification time.
* Added compatability layer to support directory-1.1Matthew Pickering2014-07-27
|
* Txt2Tags Reader: Added copyright informationMatthew Pickering2014-07-27
|
* Txt2Tags Reader: Added recognition of macrosMatthew Pickering2014-07-27
|
* Added txt2tags readerMatthew Pickering2014-07-27
http://txt2tags.org/ There are two points which currently do not match the official implementation. 1. In the official implementation lists can not be nested like the following but the reader would interpret this as a bullet list with the first item being a numbered list. ``` - + This is not a list ``` 2. The specification describes how URIs automatically becomes links. Unfortunately as is often the case, their definitiong of URI is not clear. I tried three solutions but was unsure about which to adopt. * Using isURI from Network.URI, this matches far too many strings and is therefore unsuitable * Using uri from Text.Pandoc.Shared, this doesn't match all strings that the reference implementation matches * Try to simulate the regex which is used in the native code I went with the third approach but it is not perfect, for example trailing punctuation is captured in Urls.