git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: removed readDocxWithWarnings (API change).
8e00329John MacFarlane
src/Text/Pandoc/Readers/Docx.hs+1−9
@@ -71,8 +71,7 @@ implemented, [-] means partially implemented):
71-}
71-}
72
72
73module Text.Pandoc.Readers.Docx
73module Text.Pandoc.Readers.Docx
74− ( readDocxWithWarnings
75− , readDocx
74+ ( readDocx
76 ) where
75 ) where
77
76
78import Codec.Archive.Zip
77import Codec.Archive.Zip
@@ -117,13 +116,6 @@ readDocx opts bytes
117readDocx _ _ =
116readDocx _ _ =
118 throwError $ PandocSomeError "couldn't parse docx file"
117 throwError $ PandocSomeError "couldn't parse docx file"
119
118
120−-- TODO remove this for 2.0:
121−readDocxWithWarnings :: PandocMonad m
122− => ReaderOptions
123− -> B.ByteString
124− -> m Pandoc
125−readDocxWithWarnings = readDocx
126−
127data DState = DState { docxAnchorMap :: M.Map String String
119data DState = DState { docxAnchorMap :: M.Map String String
128 , docxMediaBag :: MediaBag
120 , docxMediaBag :: MediaBag
129 , docxDropCap :: Inlines
121 , docxDropCap :: Inlines