summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Logging.hs
Commit message (Collapse)AuthorAge
* Update dates in copyright noticesAlbert Krewinkel2017-05-13
| | | | | This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
* RST writer: convert to PandocMonad, report on unrendered raw items.John MacFarlane2017-03-13
|
* Highlighting: highlighting now returns an Either rather than Maybe.John MacFarlane2017-03-13
| | | | | | | This allows us to display error information returned by the skylighting library. Display a warning if the highlighting library throws an error.
* Issue warning for duplicate header identifiers.John MacFarlane2017-03-12
| | | | | | | | | | | | | | | As noted in the previous commit, an autogenerated identifier may still coincide with an explicit identifier that is given for a header later in the document, or with an identifier on a div, span, link, or image. This commit adds a warning in this case, so users can supply an explicit identifier. * Added `DuplicateIdentifier` to LogMessage. * Modified HTML, Org, MediaWiki readers so their custom state type is an instance of HasLogMessages. This is necessary for `registerHeader` to issue warnings. See #1745.
* Logging: Added NoLangSpecified, use toConstr to avoid boilerplate.John MacFarlane2017-03-09
|
* Stylish-haskell automatic formatting changes.John MacFarlane2017-03-04
|
* Logging: Added NoTitleElement constructor for LogMessage.John MacFarlane2017-03-04
|
* Logging: Remove UsingResourceFrom, add CouldNotConvertImageJohn MacFarlane2017-02-24
|
* Class: Add stResourcePath to CommonState, getResourcePath, setResourcePath.John MacFarlane2017-02-24
| | | | | | | | | | | | To be used in implementing `\graphicspath` in LaTeX, and possibly in things like PDF production via context. Use resource path in fetchItem. Issue an info message if we get a resource from somewhere other than ".". Added UsingResourceFrom to log message.
* Put makeSelfContained in PandocMonad instead of IO.John MacFarlane2017-02-23
| | | | | | This removes the need to pass MediaBag around and improves exceptions. It also opens up the possibility of using makeSelfContained purely.
* Add CircularReference constructor to LogMessage.John MacFarlane2017-02-15
|
* Rename logMessagesToJSON -> encodeLogMessages.John MacFarlane2017-02-11
|
* Logging: export logMessagesToJSON.John MacFarlane2017-02-11
| | | | Use a deterministic order for fields.
* Use new warnings throughout the code base.John MacFarlane2017-02-11
|
* Logging: added ToJSON instance and showLogMessage.John MacFarlane2017-02-10
| | | | | | | This gives us the possibility of both machine-readable and human-readable output for log messages. See #3392.
* 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.