summaryrefslogtreecommitdiff
path: root/src/Text
Commit message (Collapse)AuthorAge
* Docx reader: Don't drop smartTag contents.John MacFarlane2017-02-03
| | | | | | | | | This just parses inside smartTags and yields their contents, ignoring the attributes of the smartTag. @jkr, you may want to adjust this, but I wanted to get a fix in as fast as possible for the dropped content. Closes #2242; see also #3412.
* HTML and DocBook writers: fix internal links with writerIdentifierPrefix opt ↵Mauro Bieg2017-02-03
| | | | | (#3398) closes #3397
* Org.hs: remove misleading commentAlexander Krotov2017-02-02
| | | This comment is likely copied from RST.hs where 'refs' variable indeed exists, but makes no sense here.
* Reduce state in Org writer (#3404)Alexander Krotov2017-02-01
|
* `--mathml` and MathML in HTMLMathMethod longer take an argument.John MacFarlane2017-01-30
| | | | | The argument was for a bridge javascript that used to be necessary in 2004. We have removed the script already.
* Make epub an alias for epub3, not epub2.John MacFarlane2017-01-30
|
* Removed some old commented-out code.John MacFarlane2017-01-28
|
* LaTeX writer: export writeBeamer.John MacFarlane2017-01-28
| | | | Removed writerBeamer from WriterOptions.
* HTML: export separate functions for slide formats.John MacFarlane2017-01-27
| | | | | | writeS5, writeSlideous, writeRevealJs, writeDZSlides, writeSlidy. Removed writerSlideVariant from WriterOptions.
* Shared: rename compactify', compactify'DL -> compactify, compactifyDL.John MacFarlane2017-01-27
|
* Removed Shared.compactify.John MacFarlane2017-01-27
| | | | Changed signatures on Parsing.tableWith and Parsing.gridTableWith.
* Expose FileTree in ClassJohn MacFarlane2017-01-27
|
* HTML writer: export writeHtmlStringForEPUB.John MacFarlane2017-01-27
| | | | Options: Remove writerEPUBVersion.
* Split writeDocbook into writeDocbook4, writeDocbook5.John MacFarlane2017-01-26
| | | | | | | Removed writerDocbookVersion in WriterOptions. Renamed default.docbook template to default.docbook4. Allow docbook4 as an output format. But alias docbook = docbook4.
* EPUB writer: split writeEPUB into writeEPUB2, writeEPUB3.John MacFarlane2017-01-26
| | | | Also include explicit epub2 output format in CLI tool.
* Provide explicit separate functions for HTML 4 and 5.John MacFarlane2017-01-25
| | | | | | | | | * Text.Pandoc.Writers.HTML: removed writeHtml, writeHtmlString, added writeHtml4, writeHtml4String, writeHtml5, writeHtml5String. * Removed writerHtml5 from WriterOptions. * Renamed default.html template to default.html4. * "html" now aliases to "html5"; to get the old HTML4 behavior, you must now specify "-t html4".
* Removed unneeded exports.John MacFarlane2017-01-25
|
* Cleanups for rebase.John MacFarlane2017-01-25
|
* Fixed small mistake in instance for logOutput.John MacFarlane2017-01-25
|
* Removed readerVerbosity and writerVerbosity.John MacFarlane2017-01-25
| | | | | | API change. Also added a verbosity parameter to makePDF.
* More logging-related changes.John MacFarlane2017-01-25
| | | | | | | | | | | | | | | | | | Class: * Removed getWarnings, withWarningsToStderr * Added report * Added logOutput to PandocMonad * Make logOutput streaming in PandocIO monad * Properly reverse getLog output Readers: * Replaced use of trace with report DEBUG. TWiki Reader: Put everything inside PandocMonad m. API changes.
* Class: Changes around logging.John MacFarlane2017-01-25
| | | | | | | * Export getLog, setVerbosity * Add report to PandocMonad methods. * Redefine warning and getWarnings in terms of getLog and report. * Remove stWarnings from CommonState, add stLog and stVerbosity.
* Changes to verbosity in writer and reader options.John MacFarlane2017-01-25
| | | | | | | | | | | | | | API changes: Text.Pandoc.Options: * Added Verbosity. * Added writerVerbosity. * Added readerVerbosity. * Removed writerVerbose. * Removed readerTrace. pandoc CLI: The `--trace` option sets verbosity to DEBUG; the `--quiet` option sets it to ERROR, and the `--verbose` option sets it to INFO. The default is WARNING.
* Removed writerHighlight; made writerHighlightStyle a Maybe.John MacFarlane2017-01-25
| | | | | | API change. For no highlighting, set writerHighlightStyle to Nothing.
* Removed vestigial writerMediaBag from WriterOptions.John MacFarlane2017-01-25
| | | | API change.
* Revert "Added page breaks into Pandoc."John MacFarlane2017-01-25
| | | | This reverts commit f02a12aff638fa2339192231b8f601bffdfe3e14.
* Fixed shadowing warnings.John MacFarlane2017-01-25
|
* Put an Integer rather than Word64 behind Extensions.John MacFarlane2017-01-25
| | | | | This allows us to expand indefinitely. No measurable performance penalty.
* Removed writerIgnoreNotes.John MacFarlane2017-01-25
| | | | | | | | | 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.
* Factored out deNote in Shared.John MacFarlane2017-01-25
|
* Removed unused readerFileScope.John MacFarlane2017-01-25
| | | | API change.
* Removed writerMediaBag from WriterOpts.John MacFarlane2017-01-25
| | | | | | ...since this is now handled through PandocMonad. Added an explicit MediaBag parameter to makePDF and makeSelfContained.
* Removed writerTeXLigatures.John MacFarlane2017-01-25
| | | | | | Make `smart` extension work in LaTeX/ConTeXt writers instead. Instead of `-t latex --no-tex-ligatures`, do `-t latex-smart`.
* Made `smart` extension default for pandoc markdown.John MacFarlane2017-01-25
| | | | Updated tests.
* Options: changed default reader/writerExtensions to emptyExtensions.John MacFarlane2017-01-25
| | | | | Previously they were pandocExtensions. This didn't make sense for many formats.
* Make the `smart` extension affect the Markdown writer.John MacFarlane2017-01-25
| | | | | | | | | | | | | | 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
* Removed readerOldDashes and --old-dashes option, added old_dashes extension.John MacFarlane2017-01-25
| | | | API change. CLI option change.
* Removed readerSmart and the --smart option; added Ext_smart extension.John MacFarlane2017-01-25
| | | | | | | | | | | | | | | | | 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.
* Make Extensions a custom type instead of a Set Extension.John MacFarlane2017-01-25
| | | | | | | | | 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.
* Split extensions code from Options into separate Text.Pandoc.Extensions.John MacFarlane2017-01-25
| | | | | | API change. However, Extensions exports Options, so this shouldn't have much impact.
* Fixed something small that broke in rebase.John MacFarlane2017-01-25
|
* Class: Warn instead or erroring if we can't fetch mediaJesse Rosenthal2017-01-25
| | | | | | 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.
* Class: Refactor fetchItem.Jesse Rosenthal2017-01-25
| | | | | | 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.
* Class: Add insertDeferredMedia function.Jesse Rosenthal2017-01-25
|
* Integrate DeferredMediaBag into CommonStateJesse Rosenthal2017-01-25
| | | | | | | | | | | 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.
* Introduce DeferredMediaBag.Jesse Rosenthal2017-01-25
| | | | | | | | | | | | 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.
* Class: have pure instance of openURL throw an error, for now.John MacFarlane2017-01-25
| | | | | Later we may want to include a map of URLs and mime type, bytestring pairs in pure state to serve as a fake internet.
* Text.Pandoc.Shared: Removed fetchItem, fetchItem'.John MacFarlane2017-01-25
| | | | | Made changes where these are used, so that the version of fetchItem from PandocMonad can be used instead.
* Add openURL and readFileStrict to PandocMonad.John MacFarlane2017-01-25
| | | | | | | | | | | | 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.)
* Removed hush from Text.Pandoc.Shared.John MacFarlane2017-01-25
| | | | Not used anywhere.