API change: export blocksToInlines' from Text.Pandoc.Shared

This commit is contained in:
mb21 2017-12-22 12:26:06 +01:00
parent 279c254007
commit add3cf73a9
3 changed files with 4 additions and 3 deletions

View file

@ -337,7 +337,7 @@ blocksToInlinesWarn cmtId blks = do
unless (null $ filter notParaOrPlain blkList) $
lift $ P.report $ DocxParserWarning $
"Docx comment " ++ cmtId ++ " will not retain formatting"
return $ fromList $ blocksToInlines blkList
return $ blocksToInlines' blkList
parPartToInlines :: PandocMonad m => ParPart -> DocxContext m Inlines
parPartToInlines (PlainRun r) = runToInlines r

View file

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

View file

@ -91,6 +91,7 @@ module Text.Pandoc.Shared (
mapLeft,
-- * for squashing blocks
blocksToInlines,
blocksToInlines',
-- * Safe read
safeRead,
-- * Temp directory