summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc.hs
Commit message (Collapse)AuthorAge
* Added Text.Pandoc.Logging (exported module).John MacFarlane2017-02-10
| | | | | | | | | | | | This now contains the Verbosity definition previously in Options, as well as a new LogMessage datatype that will eventually be used instead of raw strings for warnings. This will enable us, among other things, to provide machine-readable warnings if desired. See #3392.
* Removed --parse-raw and readerParseRaw.John MacFarlane2017-02-06
| | | | | | | | | | | | | | | | | | | | | | | These were confusing. Now we rely on the +raw_tex or +raw_html extension with latex or html input. Thus, instead of --parse-raw -f latex we use -f latex+raw_tex and instead of --parse-raw -f html we use -f html+raw_html
* Expose setVerbosity in Text.PandocJohn MacFarlane2017-02-04
|
* 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.
* 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 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.
* Text.Pandoc: limit exports from Text.Pandoc.Class.John MacFarlane2017-01-25
|
* Added ReaderOptions parameter to readNative.John MacFarlane2017-01-25
| | | | | | This makes it similar to the other readers -- even though ReaderOptions is essentially ignored, the uniformity is nice.
* Finished previous commit; removed export of toJsonFilter.John MacFarlane2017-01-25
|
* Removed deprecated toJsonFilter.John MacFarlane2017-01-25
| | | | Use toJSONFilter from Text.Pandoc.JSON.
* Error: change type of handleError.John MacFarlane2017-01-25
| | | | | | | | | 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.
* Removed readRSTWithWarnings (now useless).John MacFarlane2017-01-25
|
* Class: Renamed 'warn' to 'addWarning' and consolidated RTF writer.John MacFarlane2017-01-25
| | | | | | | | * 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]
* Unify Errors.Jesse Rosenthal2017-01-25
|
* Add Text2Tags to Text.PandocJesse Rosenthal2017-01-25
|
* Working on readers.Jesse Rosenthal2017-01-25
|
* Changed readNative to use PandocMonad.John MacFarlane2017-01-25
|
* Text.Pandoc: Change Reader to Reader m.John MacFarlane2017-01-25
| | | | | | | | | For now I just replaced occurences of Reader with Reader IO, so nothing is really different. When we move readers into instances of PandocMonad, though, we can change things here so that the readers will work with any instance of PandocMonad.
* Removed some commented-out source.John MacFarlane2017-01-25
|
* Deleted whitespace at end of source lines.John MacFarlane2017-01-25
|
* Export Text.Pandoc.Class from Text.Pandoc.John MacFarlane2017-01-25
|
* Clean up Text.PandocJesse Rosenthal2017-01-25
| | | | | | | We had primed versions of all the Writer types and getWriter functions, as we transitioned. Now that we're using the new ones exclusively, we'll get rid of the old ones, and get rid of the primes in the names.
* Convert all writers to use PandocMonad.Jesse Rosenthal2017-01-25
| | | | | | | | | | | | | | | Since PandocMonad is an instance of MonadError, this will allow us, in a future commit, to change all invocations of `error` to `throwError`, which will be preferable for the pure versions. At the moment, we're disabling the lua custom writers (this is temporary). This requires changing the type of the Writer in Text.Pandoc. Right now, we run `runIOorExplode` in pandoc.hs, to make the conversion easier. We can switch it to the safer `runIO` in the future. Note that this required a change to Text.Pandoc.PDF as well. Since running an external program is necessarily IO, we can be clearer about using PandocIO.
* Pandoc.hs: Run `runIOorExplode` on IO functions.Jesse Rosenthal2017-01-25
| | | | | This is a compatibility layer to reintroduce something like the old errors into the functions.
* Export Text.Pandoc.getDefaultExtensions.John MacFarlane2016-11-18
| | | | See #3178.
* Export Text.Pandoc.Error in Text.Pandoc.John MacFarlane2016-10-24
| | | | [API change]
* fix example in documentation (#3176)Thomas Weißschuh2016-10-23
| | | Errors are encountered while reading, not writing
* Added Zim Wiki writer, template and tests.Alex Ivkin2016-06-30
|
* Process markdown extensions on command line in L->R order.John MacFarlane2016-06-23
| | | | | | | | Previously they were processed, very unintuitively, in R->L order, so that `markdown-tex_math_dollars+tex_math_dollars` had `tex_math_dollars` disabled. Closes #2995.
* Write out Docbook 5 namespaceIvo Clarysse2016-04-29
|
* Add docbook5 writer supportIvo Clarysse2016-04-29
|
* Updated copyright dates to include 2016.John MacFarlane2016-03-22
|
* Add a general ByteStringReader with warnings.Jesse Rosenthal2016-03-12
| | | | Have docx reader use it.
* Add TEI Writer.csforste2016-01-19
|
* hlint fixes.John MacFarlane2015-11-22
|
* Merge branch 'new-image-attributes' of https://github.com/mb21/pandoc into ↵John MacFarlane2015-11-19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mb21-new-image-attributes * Bumped version to 1.16. * Added Attr field to Link and Image. * Added `common_link_attributes` extension. * Updated readers for link attributes. * Updated writers for link attributes. * Updated tests * Updated stack.yaml to build against unreleased versions of pandoc-types and texmath. * Fixed various compiler warnings. Closes #261. TODO: * Relative (percentage) image widths in docx writer. * ODT/OpenDocument writer (untested, same issue about percentage widths). * Update pandoc-citeproc.
| * ICML writer: changed type of `writeICML`.John MacFarlane2015-08-05
| | | | | | | | | | | | | | | | API change: It is now `WriterOptions -> Pandoc -> IO String`. Also handle new image attributes. (mb21)
* | 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.
* | Re-export pandocVersions from Text.Pandoc.John MacFarlane2015-10-10
| | | | | | | | | | The actual definition has been moved to Text.Pandoc.Shared, but to avoid breaking changes we reexport it here.
* | Move the variable pandocVersion from `src/Text/Pandoc.hs` toAlex Vong2015-10-01
| | | | | | | | | | | | | | | | | | | | | | `src/Text/Pandoc/Shared.hs`, so that all Writers can access this variable without importing `src/Text/Pandoc.hs`, preventing circular import. * pandoc.hs: Import pandocVersion from `Text.Pandoc.Shared`. * src/Text/Pandoc.hs: Remove the definition of pandocVersion and relevant import. * src/Text/Pandoc/Shared.hs: Add the definition of pandocVersion and relevant import.
* | Org reader: add auto identifiers if not present on headersJuliusz Gonera2015-08-15
| | | | | | | | | | | | | | Refs #2354 This should also fix the table of contents (--toc) when generating a html file from org input
* | Text.Pandoc: disable auto_identifiers for epub.John MacFarlane2015-08-08
|/ | | | | The epub writer inserts its own auto identifiers; this is more complex due to splitting into "chapter" files.