git.iko.soy/typeable/pandoc
on master help sign in
Removed readRSTWithWarnings (now useless).
dc1bbafJohn MacFarlane
src/Text/Pandoc.hs+1−1
@@ -252,7 +252,7 @@ readers = [ ("native" , StringReader $ \_ s -> readNative s)
252 ,("markdown_github" , StringReader readMarkdown)
252 ,("markdown_github" , StringReader readMarkdown)
253 ,("markdown_mmd", StringReader readMarkdown)
253 ,("markdown_mmd", StringReader readMarkdown)
254 ,("commonmark" , StringReader readCommonMark)
254 ,("commonmark" , StringReader readCommonMark)
255− ,("rst" , StringReader readRSTWithWarnings )
255+ ,("rst" , StringReader readRST)
256 ,("mediawiki" , StringReader readMediaWiki)
256 ,("mediawiki" , StringReader readMediaWiki)
257 ,("docbook" , StringReader readDocBook)
257 ,("docbook" , StringReader readDocBook)
258 ,("opml" , StringReader readOPML)
258 ,("opml" , StringReader readOPML)
src/Text/Pandoc/Readers/RST.hs+1−10
@@ -29,10 +29,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29
29
30Conversion from reStructuredText to 'Pandoc' document.
30Conversion from reStructuredText to 'Pandoc' document.
31-}
31-}
32−module Text.Pandoc.Readers.RST (
32+module Text.Pandoc.Readers.RST ( readRST ) where
33− readRST,
34− readRSTWithWarnings
35− ) where
36import Text.Pandoc.Definition
33import Text.Pandoc.Definition
37import Text.Pandoc.Builder (setMeta, fromList)
34import Text.Pandoc.Builder (setMeta, fromList)
38import Text.Pandoc.Shared
35import Text.Pandoc.Shared
@@ -65,12 +62,6 @@ readRST opts s = do
65 Right result -> return result
62 Right result -> return result
66 Left e -> throwError e
63 Left e -> throwError e
67
64
68−readRSTWithWarnings :: PandocMonad m
69− => ReaderOptions -- ^ Reader options
70− -> String -- ^ String to parse (assuming @'\n'@ line endings)
71− -> m Pandoc
72−readRSTWithWarnings = readRST
73−
74type RSTParser m = ParserT [Char] ParserState m
65type RSTParser m = ParserT [Char] ParserState m
75
66
76--
67--