aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-12-05 11:38:36 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-01-25 17:07:41 +0100
commit931528dba65529fdb948ec58d13fcd43f93b8c00 (patch)
tree788c9b71116fd4f2b76f4e91bd0d6452d7357c37 /src/Text
parent8753a91252ace9254d2aab82371c56c43b1f68b0 (diff)
downloadpandoc-931528dba65529fdb948ec58d13fcd43f93b8c00.tar.gz
Markdown reader: Removed readMarkdownWithWarnings [API change].
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index 1923bca01..a6156e497 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -30,8 +30,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Conversion of markdown-formatted plain text to 'Pandoc' document.
-}
-module Text.Pandoc.Readers.Markdown ( readMarkdown,
- readMarkdownWithWarnings ) where
+module Text.Pandoc.Readers.Markdown ( readMarkdown ) where
import Data.List ( transpose, sortBy, findIndex, intercalate )
import qualified Data.Map as M
@@ -84,14 +83,6 @@ readMarkdown opts s = do
Right result -> return result
Left e -> throwError e
--- | Read markdown from an input string and return a pair of a Pandoc document
--- and a list of warnings.
-readMarkdownWithWarnings :: PandocMonad m
- => ReaderOptions -- ^ Reader options
- -> String -- ^ String to parse (assuming @'\n'@ line endings)
- -> m Pandoc
-readMarkdownWithWarnings = readMarkdown
-
trimInlinesF :: F Inlines -> F Inlines
trimInlinesF = liftM trimInlines