@@ -12,7 +12,7 @@ import Text.Pandoc.Class (PandocMonad)
12import Text.Pandoc.Options
12import Text.Pandoc.Options
13import Text.Pandoc.Readers.HTML (readHtml)
13import Text.Pandoc.Readers.HTML (readHtml)
14import Text.Pandoc.Readers.Markdown (readMarkdown)
14import Text.Pandoc.Readers.Markdown (readMarkdown)
15−import Text.Pandoc.Shared (crFilter, blocksToInlines)
15+import Text.Pandoc.Shared (crFilter, blocksToInlines')
16import Text.XML.Light
16import Text.XML.Light
18type OPML m = StateT OPMLState m
18type OPML m = StateT OPMLState m
@@ -74,7 +74,7 @@ asHtml :: PandocMonad m => String -> OPML m Inlines
74asHtml s = do
74asHtml s = do
75 opts <- gets opmlOptions
75 opts <- gets opmlOptions
76 Pandoc _ bs <- readHtml def{ readerExtensions = readerExtensions opts } (pack s)
76 Pandoc _ bs <- readHtml def{ readerExtensions = readerExtensions opts } (pack s)
77− return $ fromList $ blocksToInlines bs
77+ return $ blocksToInlines' bs
79asMarkdown :: PandocMonad m => String -> OPML m Blocks
79asMarkdown :: PandocMonad m => String -> OPML m Blocks
80asMarkdown s = do
80asMarkdown s = do