git.iko.soy/typeable/pandoc
on master help sign in
Removed readRSTWithWarnings (now useless).
commitdc1bbaf58d4adea40f808749b19009a73135bada authorJohn MacFarlane <jgm@berkeley.edu> dateSat 3 Dec 2016, 19:07 (10 years ago) parent3806449
2 files changed+2−11
src/Text/Pandoc.hs+1−1 src/Text/Pandoc/Readers/RST.hs+1−10
src/Text/Pandoc.hs+1−1
@@ -252,7 +252,7 @@ readers = [ ("native" , StringReader $ \_ s -> readNative s)
252252 ,("markdown_github" , StringReader readMarkdown)
253253 ,("markdown_mmd", StringReader readMarkdown)
254254 ,("commonmark" , StringReader readCommonMark)
255− ,("rst" , StringReader readRSTWithWarnings )
255+ ,("rst" , StringReader readRST)
256256 ,("mediawiki" , StringReader readMediaWiki)
257257 ,("docbook" , StringReader readDocBook)
258258 ,("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
2929
3030Conversion from reStructuredText to 'Pandoc' document.
3131-}
32−module Text.Pandoc.Readers.RST (
33− readRST,
34− readRSTWithWarnings
35− ) where
32+module Text.Pandoc.Readers.RST ( readRST ) where
3633import Text.Pandoc.Definition
3734import Text.Pandoc.Builder (setMeta, fromList)
3835import Text.Pandoc.Shared
@@ -65,12 +62,6 @@ readRST opts s = do
6562 Right result -> return result
6663 Left e -> throwError e
6764
68−readRSTWithWarnings :: PandocMonad m
69− => ReaderOptions -- ^ Reader options
70− -> String -- ^ String to parse (assuming @'\n'@ line endings)
71− -> m Pandoc
72−readRSTWithWarnings = readRST
73−
7465type RSTParser m = ParserT [Char] ParserState m
7566
7667--