diff options
author | Michael Hoffmann <brennan.brisad@gmail.com> | 2020-10-16 02:09:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 17:09:29 -0700 |
commit | 988d381aad150431f1b8b46349526fb5379e0fa0 (patch) | |
tree | a51c0e1b613f059ec80a1640dca1010f5762eb72 | |
parent | 3c8b3eba177ca045a3051c0132632a0bf749f195 (diff) | |
download | pandoc-988d381aad150431f1b8b46349526fb5379e0fa0.tar.gz |
Fix some small typos in the API documentation (#6751)
While reading the docs I found a couple of small typos.
-rw-r--r-- | doc/using-the-pandoc-api.md | 6 | ||||
-rw-r--r-- | src/Text/Pandoc/Class/PandocMonad.hs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/using-the-pandoc-api.md b/doc/using-the-pandoc-api.md index dbedefaa2..df9380313 100644 --- a/doc/using-the-pandoc-api.md +++ b/doc/using-the-pandoc-api.md @@ -120,7 +120,7 @@ getVerbosity :: PandocMonad m => m Verbosity -- | Set the verbosity level. setVerbosity :: PandocMonad m => Verbosity -> m () --- Get the accomulated log messages (in temporal order). +-- Get the accumulated log messages (in temporal order). getLog :: PandocMonad m => m [LogMessage] getLog = reverse <$> getsCommonState stLog @@ -337,7 +337,7 @@ use `throwError`. In addition to errors, which stop execution of the conversion pipeline, one can generate informational messages. Use `report` from [Text.Pandoc.Class] to issue a `LogMessage`. -For a list of cosntructors for `LogMessage`, see +For a list of constructors for `LogMessage`, see [Text.Pandoc.Logging]. Note that each type of log message is associated with a verbosity level. The verbosity level (`setVerbosity`/`getVerbosity`) determines whether the report @@ -432,7 +432,7 @@ structure and calling this function. 1. Pandoc's parsers can exhibit pathological behavior on some inputs. So it is always a good idea to wrap uses of pandoc in a timeout function (e.g. `System.Timeout.timeout` from `base`) - to prevent DOS attacks. + to prevent DoS attacks. 2. If pandoc generates HTML from untrusted user input, it is always a good idea to filter the generated HTML through diff --git a/src/Text/Pandoc/Class/PandocMonad.hs b/src/Text/Pandoc/Class/PandocMonad.hs index 1903d73d8..374da161b 100644 --- a/src/Text/Pandoc/Class/PandocMonad.hs +++ b/src/Text/Pandoc/Class/PandocMonad.hs @@ -160,7 +160,7 @@ setVerbosity verbosity = getVerbosity :: PandocMonad m => m Verbosity getVerbosity = getsCommonState stVerbosity --- | Get the accomulated log messages (in temporal order). +-- | Get the accumulated log messages (in temporal order). getLog :: PandocMonad m => m [LogMessage] getLog = reverse <$> getsCommonState stLog |