Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
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 | Added `--fail-if-warnings` option. | John MacFarlane | 2 | -5/+24 | |
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 | 3 | -123/+37 | |
* 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 | Added a `--quiet` option to suppress warnings. | John MacFarlane | 3 | -11/+24 | |
Use this also in Tests.Old. | |||||
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 | 2 | -6/+23 | |
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 | |
2017-01-25 | Refactored math conversion in writers. | John MacFarlane | 12 | -417/+489 | |
* Remove exported module `Text.Pandoc.Readers.TeXMath` * Add exported module `Text.Pandoc.Writers.Math` * The function `texMathToInlines` now lives in `Text.Pandoc.Writers.Math` * Export helper function `convertMath` from `Text.Pandoc.Writers.Math` * Use these functions in all writers that do math conversion. This ensures that warnings will always be issued for failed math conversions. | |||||
2017-01-25 | Class: cleanup and clarification. | Jesse Rosenthal | 1 | -22/+6 | |
2017-01-25 | Remove OverlappingInstances pragma. | Jesse Rosenthal | 1 | -1/+0 | |
It doesn't help to solve the problem in 7.8. | |||||
2017-01-25 | Remove redundant import. | Jesse Rosenthal | 1 | -1/+1 | |
2017-01-25 | Try adding OverlappingInstances pragma to parsing. | Jesse Rosenthal | 1 | -0/+1 | |
It's having trouble figuring out HasQuoteContext. | |||||
2017-01-25 | Readers: pass errors straight up to PandocMonad. | Jesse Rosenthal | 8 | -13/+8 | |
Since we've unified error types, we can just throw the same error at the toplevel. | |||||
2017-01-25 | ODT test: remove unnecessary imports. | Jesse Rosenthal | 1 | -1/+1 | |
2017-01-25 | Fix rebasing errors. | Jesse Rosenthal | 2 | -2/+2 | |
2017-01-25 | Remove redundant imports from OPML reader. | Jesse Rosenthal | 1 | -2/+0 | |
2017-01-25 | Remove reader from PandocPure. | Jesse Rosenthal | 1 | -50/+43 | |
Make it all state. This will make it easier to set things. | |||||
2017-01-25 | Make Txt2Tags test pass. | Jesse Rosenthal | 3 | -5/+12 | |
We don't have a good way to set things that aren't in the common state. That will be the next order of business. | |||||
2017-01-25 | Have a common state for all PandocMonad instances. | Jesse Rosenthal | 1 | -81/+63 | |
2017-01-25 | Update all tests to use new readers and error structure. | Jesse Rosenthal | 11 | -31/+32 | |
2017-01-25 | Unify Errors. | Jesse Rosenthal | 27 | -64/+83 | |
2017-01-25 | Finish converting readers over. | Jesse Rosenthal | 2 | -8/+21 | |
2017-01-25 | Have to do some work to get the mediabag out. | Jesse Rosenthal | 2 | -14/+22 | |
2017-01-25 | Add Text2Tags to Text.Pandoc | Jesse Rosenthal | 2 | -7/+5 | |
2017-01-25 | Add input and output filepaths to PandocMonad. | Jesse Rosenthal | 1 | -12/+48 | |
We'll want these in a number of places, but right now it will be necessary for the macros in T2T. | |||||
2017-01-25 | Add Zoned time to class. | Jesse Rosenthal | 1 | -1/+15 | |
2017-01-25 | Class: Add getModificationTime | Jesse Rosenthal | 1 | -9/+37 | |
This is to enable macros in T2T, but can be used for other stuff in the future, I imagine. This requires building up the info in our fake file trees. Note the version in IO is safe. | |||||
2017-01-25 | Working on readers. | Jesse Rosenthal | 26 | -1157/+1328 | |
2017-01-25 | Add IncoherentInstances pragma for HasQuotedContext. | Jesse Rosenthal | 1 | -1/+3 | |
We can remove this if we can figure out a better way to do this. | |||||
2017-01-25 | Class: add setMediaBag function. | Jesse Rosenthal | 1 | -0/+6 | |
2017-01-25 | Add ParseError to PandocExecutionError. | Jesse Rosenthal | 1 | -1/+3 | |
This will be unified with Text.Pandoc.Error eventually. But I'm building it out here so as not to interfere with other modules that might be using the error module currently. | |||||
2017-01-25 | List derived instances vertically one-per-line for readability. | Jesse Rosenthal | 1 | -2/+14 | |
2017-01-25 | Change Test{State,Env} to Pure{State,Env} | Jesse Rosenthal | 1 | -10/+10 | |
This was left over from when the pure function was called runTest. | |||||
2017-01-25 | Class: Add MediaBag to MonadState. | Jesse Rosenthal | 1 | -6/+18 | |
2017-01-25 | Class: Add stateful IO warnings, and function to get warndings. | Jesse Rosenthal | 1 | -3/+9 | |
Right now, the io warnings both print to stderr and write to the state. That can be easily modified. We also add a getWarnings function which pulls warnings out of the state for instances of PandocMonad. | |||||
2017-01-25 | Changed readNative to use PandocMonad. | John MacFarlane | 6 | -11/+22 | |