Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2017-01-25 | Added extra-dep: true to stack.yaml for url deps. | John MacFarlane | 1 | -0/+2 | |
2017-01-25 | Compile against pandoc-types 1.18.*. | John MacFarlane | 2 | -4/+9 | |
2017-01-25 | Removed tests for Walk; these now live in pandoc-types. | John MacFarlane | 3 | -49/+0 | |
2017-01-25 | Removed duplicate name in authors | John MacFarlane | 1 | -1/+0 | |
2017-01-25 | Put an Integer rather than Word64 behind Extensions. | John MacFarlane | 1 | -3/+2 | |
This allows us to expand indefinitely. No measurable performance penalty. | |||||
2017-01-25 | Removed writerIgnoreNotes. | John MacFarlane | 6 | -18/+10 | |
Instead, just temporarily remove notes when generating TOC lists in HTML and Markdown (as we already did in LaTeX). Also export deNote from Text.Pandoc.Shared. API change in Shared and Options.WriterOptions. | |||||
2017-01-25 | Factored out deNote in Shared. | John MacFarlane | 1 | -4/+4 | |
2017-01-25 | Removed unneeded imports. | John MacFarlane | 1 | -2/+0 | |
2017-01-25 | Removed unused readerFileScope. | John MacFarlane | 2 | -3/+0 | |
API change. | |||||
2017-01-25 | Removed writerMediaBag from WriterOpts. | John MacFarlane | 3 | -23/+27 | |
...since this is now handled through PandocMonad. Added an explicit MediaBag parameter to makePDF and makeSelfContained. | |||||
2017-01-25 | Removed writerTeXLigatures. | John MacFarlane | 5 | -33/+16 | |
Make `smart` extension work in LaTeX/ConTeXt writers instead. Instead of `-t latex --no-tex-ligatures`, do `-t latex-smart`. | |||||
2017-01-25 | Made `smart` extension default for pandoc markdown. | John MacFarlane | 33 | -171/+174 | |
Updated tests. | |||||
2017-01-25 | Options: changed default reader/writerExtensions to emptyExtensions. | John MacFarlane | 1 | -2/+2 | |
Previously they were pandocExtensions. This didn't make sense for many formats. | |||||
2017-01-25 | Make the `smart` extension affect the Markdown writer. | John MacFarlane | 2 | -17/+41 | |
Thus, to "unsmartify" something that has been parsed as smart by pandoc, you can use `-t markdown+smart`, and straight quotes will be produced instead of curly quotes, etc. Example: % pandoc -f latex -t markdown+smart ``hi''---ok ^D "hi"---ok | |||||
2017-01-25 | Removed readerOldDashes and --old-dashes option, added old_dashes extension. | John MacFarlane | 8 | -33/+22 | |
API change. CLI option change. | |||||
2017-01-25 | Removed readerSmart and the --smart option; added Ext_smart extension. | John MacFarlane | 15 | -69/+55 | |
Now you will need to do -f markdown+smart instead of -f markdown --smart This change opens the way for writers, in addition to readers, to be sensitive to +smart, but this change hasn't yet been made. API change. Command-line option change. Updated manual. | |||||
2017-01-25 | Make Extensions a custom type instead of a Set Extension. | John MacFarlane | 8 | -59/+76 | |
The type is implemented in terms of an underlying bitset which should be more efficient. API change: from Text.Pandoc.Extensions export Extensions, emptyExtensions, extensionsFromList, enableExtension, disableExtension, extensionEnabled. | |||||
2017-01-25 | Split extensions code from Options into separate Text.Pandoc.Extensions. | John MacFarlane | 3 | -205/+250 | |
API change. However, Extensions exports Options, so this shouldn't have much impact. | |||||
2017-01-25 | Fixed something small that broke in rebase. | John MacFarlane | 1 | -1/+1 | |
2017-01-25 | Class: Warn instead or erroring if we can't fetch media | Jesse Rosenthal | 1 | -5/+18 | |
If deferred media can't be fetched, we catch the error and warn instead. We add an internal function for fetching which returns a Maybe value, and then run catMaybes to only keep the Just's. | |||||
2017-01-25 | Class: Refactor fetchItem. | Jesse Rosenthal | 1 | -38/+44 | |
Move the downloading/reading-in logic out of fetchItem, so we can use it to fill the MediaBag. Now when other modules use `fetchItem` it will fill the MediaBag as expected. | |||||
2017-01-25 | Class: Add insertDeferredMedia function. | Jesse Rosenthal | 1 | -0/+7 | |
2017-01-25 | Integrate DeferredMediaBag into CommonState | Jesse Rosenthal | 1 | -10/+17 | |
The DeferredMediaBag is now the object that is held in state. It should not be visible to users, who will still deal with MediaBag through exported getters and setters. We now have a function `fetchDeferredMedia` which returns () but downloads/reads in all of the deferred media. Note that getMediaBag first fetches all deferred media. | |||||
2017-01-25 | Introduce DeferredMediaBag. | Jesse Rosenthal | 1 | -0/+24 | |
This is a lazy MediaBag, that will only be evaluated (downloaded/read in) upon demand. Note that we use fetchItem in getDefferedMedia at the moment to read in/download. This means that we don't need to distinguish between URIs and FilePaths. But there is an inefficiency here: `fetchItem` will pull an item out of the mediaBag if it's already there, and then we'll reinsert it. We could separate out `fetchItem` into the function that checks the MediaBag and the underlying downloader/read-inner. | |||||
2017-01-25 | Use latest pandoc-citeproc for windows build. | John MacFarlane | 1 | -1/+1 | |
2017-01-25 | Expose Text.Pandoc.MIME, unexpose Text.Pandoc.CSS | John MacFarlane | 1 | -2/+2 | |
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 | Moved extract-changes.hs and github-upload.sh to tools/. | John MacFarlane | 3 | -1/+1 | |
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 | 13 | -214/+30 | |
* 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 | Fixed up weigh-pandoc and benchmark-pandoc so they build. | John MacFarlane | 3 | -13/+17 | |
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 | CONTRIBUTING: instructions for building weigh-pandoc. | John MacFarlane | 1 | -0/+5 | |
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 | Updated RELEASE-CHECKLIST and markdownified. | John MacFarlane | 2 | -35/+27 | |
2017-01-25 | Removed PROFILING, added profiling info to CONTRIBUTING.md. | John MacFarlane | 2 | -6/+17 | |
2017-01-25 | Removed Interact.hs, not needed any more with modern tools. | John MacFarlane | 1 | -34/+0 | |
2017-01-25 | Removed ancient HCAR-Pandoc.tex. | John MacFarlane | 1 | -35/+0 | |
2017-01-25 | Use dev pandoc-citeproc for appveyor build. | John MacFarlane | 1 | -1/+3 | |
2017-01-25 | Added ReaderOptions parameter to readNative. | John MacFarlane | 6 | -8/+10 | |
This makes it similar to the other readers -- even though ReaderOptions is essentially ignored, the uniformity is nice. | |||||
2017-01-25 | Version to 2.0. | John MacFarlane | 1 | -1/+1 | |
2017-01-25 | pandoc.hs: moved main loop to beginning of file. | John MacFarlane | 1 | -368/+371 | |
2017-01-25 | Refactored pandoc.hs so that all the runIO' part comes at the end. | John MacFarlane | 1 | -50/+50 | |
2017-01-25 | Travis: allow ghc 7.8.4 to fail. For now anyway. | John MacFarlane | 1 | -0/+1 | |
2017-01-25 | MediaBag: put extractMediaBag into MonadIO. | John MacFarlane | 1 | -3/+7 | |