Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-01-25 | Class: have pure instance of openURL throw an error, for now. | John MacFarlane | 1 | -1/+1 | |
Later we may want to include a map of URLs and mime type, bytestring pairs in pure state to serve as a fake internet. | |||||
2017-01-25 | Text.Pandoc.Shared: Removed fetchItem, fetchItem'. | John MacFarlane | 9 | -108/+58 | |
Made changes where these are used, so that the version of fetchItem from PandocMonad can be used instead. | |||||
2017-01-25 | Add openURL and readFileStrict to PandocMonad. | John MacFarlane | 1 | -38/+98 | |
Removed fetchItem and fetchItem'. Provide fetchItem in PandocMonad (it uses openURL and readFileStrict). TODO: - PandocPure instance for openURL. - Fix places where fetchItem is used so that we trap the exception instead of checking for a Left value. (At least in the places where we want a warning rather than a failure.) | |||||
2017-01-25 | Removed hush from Text.Pandoc.Shared. | John MacFarlane | 2 | -8/+3 | |
Not used anywhere. | |||||
2017-01-25 | Removed `--normalize` option and normalization functions from Shared. | John MacFarlane | 5 | -159/+20 | |
* Removed normalize, normalizeInlines, normalizeBlocks from Text.Pandoc.Shared. These shouldn't now be necessary, since normalization is handled automatically by the Builder monoid instance. * Remove `--normalize` command-line option. * Don't use normalize in tests. * A few revisions to readers so they work well without normalize. | |||||
2017-01-25 | Class: Removed getDefaultReferenceDocx/ODT from PandocMonad. | John MacFarlane | 3 | -25/+7 | |
We don't need these, since the default docx and odt can be retrieved using `readDataFile datadir "reference.docx"` (or odt). | |||||
2017-01-25 | Removed commented-out vestigaes of fail in Class. | John MacFarlane | 1 | -8/+0 | |
2017-01-25 | Class: removed 'fail' from PandocMonad. | John MacFarlane | 2 | -13/+13 | |
Do we need this? I don't see why. There's a name clash which would better be avoided. | |||||
2017-01-25 | Generic instance for PandocError. | John MacFarlane | 1 | -1/+2 | |
2017-01-25 | Text.Pandoc: limit exports from Text.Pandoc.Class. | John MacFarlane | 1 | -2/+5 | |
2017-01-25 | Added ReaderOptions parameter to readNative. | John MacFarlane | 2 | -3/+5 | |
This makes it similar to the other readers -- even though ReaderOptions is essentially ignored, the uniformity is nice. | |||||
2017-01-25 | MediaBag: put extractMediaBag into MonadIO. | John MacFarlane | 1 | -3/+7 | |
2017-01-25 | SelfContained: put makeSelfContained in MonadIO. | John MacFarlane | 1 | -2/+3 | |
2017-01-25 | PDF: put makePDF in MonadIO. | John MacFarlane | 1 | -4/+6 | |
2017-01-25 | Shared: put err into MonadIO. | John MacFarlane | 1 | -2/+2 | |
2017-01-25 | Finished previous commit; removed export of toJsonFilter. | John MacFarlane | 1 | -2/+0 | |
2017-01-25 | Removed deprecated toJsonFilter. | John MacFarlane | 1 | -6/+0 | |
Use toJSONFilter from Text.Pandoc.JSON. | |||||
2017-01-25 | Simplified reference-docx/reference-odt to reference-doc. | John MacFarlane | 3 | -6/+4 | |
* Text.Pandoc.Options.WriterOptions: removed writerReferenceDocx and writerReferenceODT, replaced them with writerReferenceDoc. This can hold either an ODT or a Docx. In this way, writerReferenceDoc is like writerTemplate, which can hold templates of different formats. [API change] * Removed `--reference-docx` and `--reference-odt` options. * Added `--reference-doc` option. | |||||
2017-01-25 | Process.pipeProcess: stream stderr rather than capturing. | John MacFarlane | 2 | -27/+15 | |
Signature of pipeProcess has changed: the return value is now IO (ExitCode, ByteString) -- with only stdout. Stderr is just inherited from the parent. This means that stderr from filters will now be streamed as the filters are run. Closes #2729. | |||||
2017-01-25 | RST reader: rebase-related fixes to warnings. | John MacFarlane | 1 | -13/+12 | |
2017-01-25 | Removed unneeded pragmas. | John MacFarlane | 1 | -2/+1 | |
2017-01-25 | Remove now-unnecessary lifts in Markdown writer. | John MacFarlane | 1 | -9/+6 | |
Other writers still TBD. | |||||
2017-01-25 | Instances of PandocMonad for common transformers. | John MacFarlane | 1 | -2/+79 | |
2017-01-25 | Class: no more MonadState CommonState. | John MacFarlane | 1 | -14/+23 | |
- Added getCommonState, putCommonState, getsCommonState, modifyCommonState to PandocMonad interface. - Removed MonadState CommonState instances. | |||||
2017-01-25 | Whitespace. | John MacFarlane | 1 | -3/+3 | |
2017-01-25 | RST reader: removed now unnecessary lifts. | John MacFarlane | 1 | -8/+7 | |
2017-01-25 | Markdown reader: Removed readMarkdownWithWarnings [API change]. | John MacFarlane | 1 | -10/+1 | |
2017-01-25 | Add PandocMonad m instance for ParserT based on PandocMonad. | John MacFarlane | 1 | -6/+4 | |
This will avoid the need for lift. | |||||
2017-01-25 | Have warningWithPos take a SourcePos rather than Maybe SourcePos. | John MacFarlane | 4 | -20/+30 | |
After all, we have warning if you don't want the source pos info. | |||||
2017-01-25 | LaTeX reader: add warning when parsing unescaped characters | John MacFarlane | 1 | -4/+5 | |
that normally need escaping in LaTeX. | |||||
2017-01-25 | RST reader: implement start-after, end-before fields for include. | John MacFarlane | 1 | -6/+12 | |
2017-01-25 | RST reader: handle code, literal, number-lines, class, name for include. | John MacFarlane | 1 | -30/+27 | |
2017-01-25 | RST reader include: handle negative values for start-, end-line. | John MacFarlane | 1 | -23/+30 | |
2017-01-25 | RST reader: support start-line and end-line in include. | John MacFarlane | 1 | -2/+8 | |
Just skip other options for now. | |||||
2017-01-25 | RST reader: Simple `.. include::` support. | John MacFarlane | 1 | -2/+65 | |
TODO: handle the options (see comment in code). See #223. | |||||
2017-01-25 | Class: Functions for dealing with PureState | Jesse Rosenthal | 1 | -23/+42 | |
There are two states in PandocPure, but it is only easy to deal with CommonState. In the past, to do state monad operations on PureState (the state specific to PandocPure) you had to add (lift . lift) to the monadic operation and then rewrap in the newtype. This adds four functions ({get,gets,put,modify}PureState) corresponding to normal state monad operations. This allows the user to modify PureState in PandocPure without worrying about where it sits in the monad stack or rewrapping the newtype. | |||||
2017-01-25 | Class: rename env* prefixed fields to st*. | Jesse Rosenthal | 1 | -28/+28 | |
This was left over from when they were part of an environment. | |||||
2017-01-25 | Shared: changed err and warn output. | John MacFarlane | 1 | -5/+2 | |
Don't print program name in either case. Print [warning] for warnings. | |||||
2017-01-25 | LaTeX reader: Make sure we process includes in preamble. | John MacFarlane | 1 | -0/+1 | |
2017-01-25 | LaTeX reader: further fixes to include. | John MacFarlane | 1 | -7/+11 | |
2017-01-25 | Give source position for include file loop. | John MacFarlane | 1 | -1/+1 | |
2017-01-25 | Error: change type of handleError. | John MacFarlane | 3 | -16/+15 | |
It now lives in IO and gives a proper message + exit instead of calling 'error'. We shouldn't be making it easier for people to raise error on pure code. And this is better for the main application in IO. | |||||
2017-01-25 | LaTeX reader: Proper include file processing. | John MacFarlane | 2 | -111/+35 | |
* Removed handleIncludes from LaTeX reader [API change]. * Now the ordinary LaTeX reader handles includes in a way that is appropriate to the monad it is run in. | |||||
2017-01-25 | Removed readRSTWithWarnings (now useless). | John MacFarlane | 2 | -11/+2 | |
2017-01-25 | Parsing: Removed obsolete warnings stuff. | John MacFarlane | 1 | -21/+3 | |
Removed stateWarnings, addWarning, and readWithWarnings. | |||||
2017-01-25 | TWiki reader: Remove old readTWikiWithWarnings'. | John MacFarlane | 1 | -18/+5 | |
We get warnings for free now from PandocM. (And anyway, this reader doesn't generate any!) | |||||
2017-01-25 | Class: rename addWarning[WithPos] to warning[WithPos]. | John MacFarlane | 11 | -42/+40 | |
There's already a function addWarning in Parsing! Maybe we can dispense with that now, but I still like 'warning' better as a name. | |||||
2017-01-25 | Class: Renamed 'warn' to 'addWarning' and consolidated RTF writer. | John MacFarlane | 11 | -41/+42 | |
* Renaming Text.Pandoc.Class.warn to addWarning avoids conflict with Text.Pandoc.Shared.warn. * Removed writeRTFWithEmbeddedImages from Text.Pandoc.Writers.RTF. This is no longer needed; we automatically handle embedded images using the PandocM functions. [API change] | |||||
2017-01-25 | New withWarningsToStderr exported from Text.Pandoc.Class. | John MacFarlane | 1 | -1/+11 | |
And use this in pandoc.hs so that messages actually get printed. | |||||
2017-01-25 | Make sure texMathToInlines issues warning. | John MacFarlane | 1 | -1/+3 | |