aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc.hs
AgeCommit message (Collapse)AuthorFilesLines
2021-01-08Update copyright notices for 2021 (#7012)Albert Krewinkel1-1/+1
2020-03-13Update copyright year (#6186)Albert Krewinkel1-1/+1
* Update copyright year * Copyright: add notes for Lua and Jira modules
2019-08-08Remove blank line (#5679)Leif Metcalf1-1/+0
2019-03-01Remove license boilerplate.John MacFarlane1-18/+0
The haddock module header contains essentially the same information, so the boilerplate is redundant and just one more thing to get out of sync.
2019-02-04Add missing copyright notices and remove license boilerplate (#5112)Albert Krewinkel1-2/+2
Quite a few modules were missing copyright notices. This commit adds copyright notices everywhere via haddock module headers. The old license boilerplate comment is redundant with this and has been removed. Update copyright years to 2019. Closes #4592.
2018-01-05Update copyright notices to include 2018Albert Krewinkel1-2/+2
2017-10-29Export all of Text.Pandoc.Class from Text.Pandoc.John MacFarlane1-5/+1
2017-06-20Move CR filtering from tabFilter to the readers.John MacFarlane1-4/+0
The readers previously assumed that CRs had been filtered from the input. Now we strip the CRs in the readers themselves, before parsing. (The point of this is just to simplify the parsers.) Shared now exports a new function `crFilter`. [API change] And `tabFilter` no longer filters CRs.
2017-06-20Updated code example.John MacFarlane1-4/+10
2017-05-13Update dates in copyright noticesAlbert Krewinkel1-2/+2
This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
2017-04-26API change: move writer functions to Text.Pandoc.WritersAlbert Krewinkel1-154/+2
Writer helper functions were defined in the top-level Text.Pandoc module. These functions are moved to the Writer submodule as to enable reuse in other submodules.
2017-04-26API change: move reader functions to Text.Pandoc.ReadersAlbert Krewinkel1-92/+4
Reader helper functions were defined in the top-level Text.Pandoc module. These functions are moved to the Readers submodule as to enable reuse in other submodules.
2017-04-26API change: move extension handling to Text.Pandoc.ExtensionsAlbert Krewinkel1-60/+1
Extension parsing and processing functions were defined in the top-level Text.Pandoc module. These functions are moved to the Extensions submodule as to enable reuse in other submodules.
2017-03-30Added JATS writer.John MacFarlane1-0/+3
* New module Text.Pandoc.Writer.JATS exporting writeJATS. * New output format `jats`. * Added tests. * Revised manual.
2017-03-23Initial addition of groff ms writer.John MacFarlane1-0/+3
* New module: Text.Pandoc.Writers.Ms. * New template: default.ms. * The writer uses texmath's new eqn writer to convert math to eqn format, so a ms file produced with this writer should be processed with `groff -ms -e` if it contains math.
2017-03-10Add Muse writer (#3489)Alexander Krotov1-0/+3
* Add Muse writer * Advertise new Muse writer * Muse writer: add regressions tests
2017-03-04Stylish-haskell automatic formatting changes.John MacFarlane1-43/+45
2017-02-10Added Text.Pandoc.Logging (exported module).John MacFarlane1-0/+3
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.
2017-02-06Removed --parse-raw and readerParseRaw.John MacFarlane1-0/+1
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
2017-02-04Expose setVerbosity in Text.PandocJohn MacFarlane1-0/+1
2017-01-30Make epub an alias for epub3, not epub2.John MacFarlane1-1/+1
2017-01-28Removed some old commented-out code.John MacFarlane1-25/+0
2017-01-28LaTeX writer: export writeBeamer.John MacFarlane1-2/+2
Removed writerBeamer from WriterOptions.
2017-01-27HTML: export separate functions for slide formats.John MacFarlane1-11/+10
writeS5, writeSlideous, writeRevealJs, writeDZSlides, writeSlidy. Removed writerSlideVariant from WriterOptions.
2017-01-26Split writeDocbook into writeDocbook4, writeDocbook5.John MacFarlane1-4/+5
Removed writerDocbookVersion in WriterOptions. Renamed default.docbook template to default.docbook4. Allow docbook4 as an output format. But alias docbook = docbook4.
2017-01-26EPUB writer: split writeEPUB into writeEPUB2, writeEPUB3.John MacFarlane1-5/+7
Also include explicit epub2 output format in CLI tool.
2017-01-25Provide explicit separate functions for HTML 4 and 5.John MacFarlane1-13/+14
* 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".
2017-01-25Removed readerOldDashes and --old-dashes option, added old_dashes extension.John MacFarlane1-2/+4
API change. CLI option change.
2017-01-25Removed readerSmart and the --smart option; added Ext_smart extension.John MacFarlane1-1/+8
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-25Make Extensions a custom type instead of a Set Extension.John MacFarlane1-17/+19
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-25Text.Pandoc: limit exports from Text.Pandoc.Class.John MacFarlane1-2/+5
2017-01-25Added ReaderOptions parameter to readNative.John MacFarlane1-1/+1
This makes it similar to the other readers -- even though ReaderOptions is essentially ignored, the uniformity is nice.
2017-01-25Finished previous commit; removed export of toJsonFilter.John MacFarlane1-2/+0
2017-01-25Removed deprecated toJsonFilter.John MacFarlane1-6/+0
Use toJSONFilter from Text.Pandoc.JSON.
2017-01-25Error: change type of handleError.John MacFarlane1-4/+3
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-25Removed readRSTWithWarnings (now useless).John MacFarlane1-1/+1
2017-01-25Class: Renamed 'warn' to 'addWarning' and consolidated RTF writer.John MacFarlane1-2/+1
* 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-25Unify Errors.Jesse Rosenthal1-2/+2
2017-01-25Add Text2Tags to Text.PandocJesse Rosenthal1-4/+2
2017-01-25Working on readers.Jesse Rosenthal1-46/+49
2017-01-25Changed readNative to use PandocMonad.John MacFarlane1-2/+2
2017-01-25Text.Pandoc: Change Reader to Reader m.John MacFarlane1-9/+11
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.
2017-01-25Removed some commented-out source.John MacFarlane1-70/+0
2017-01-25Deleted whitespace at end of source lines.John MacFarlane1-1/+1
2017-01-25Export Text.Pandoc.Class from Text.Pandoc.John MacFarlane1-0/+2
2017-01-25Clean up Text.PandocJesse Rosenthal1-73/+53
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.
2017-01-25Convert all writers to use PandocMonad.Jesse Rosenthal1-68/+148
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.
2017-01-25Pandoc.hs: Run `runIOorExplode` on IO functions.Jesse Rosenthal1-9/+17
This is a compatibility layer to reintroduce something like the old errors into the functions.
2016-11-18Export Text.Pandoc.getDefaultExtensions.John MacFarlane1-0/+1
See #3178.
2016-10-24Export Text.Pandoc.Error in Text.Pandoc.John MacFarlane1-1/+2
[API change]