@@ -1,4 +1,3 @@
1−
21{-# LANGUAGE PatternGuards #-}
32{-# LANGUAGE RankNTypes #-}
43{-# LANGUAGE ScopedTypeVariables #-}
@@ -65,7 +64,7 @@ import Text.Pandoc.Readers.Docx.StyleMap
6564import Text.Pandoc.Shared hiding (Element)
6665import Text.Pandoc.Walk
6766import Text.Pandoc.Writers.Math
68−import Text.Pandoc.Writers.Shared (fixDisplayMath)
67+import Text.Pandoc.Writers.Shared (fixDisplayMath, metaValueToInlines)
6968import Text.Printf (printf)
7069import Text.TeXMath
7170import Text.XML.Light as XML
@@ -196,15 +195,6 @@ isValidChar (ord -> c)
196195 | 0x10000 <= c && c <= 0x10FFFF = True
197196 | otherwise = False
198197
199−metaValueToInlines :: MetaValue -> [Inline]
200−metaValueToInlines (MetaString s) = [Str s]
201−metaValueToInlines (MetaInlines ils) = ils
202−metaValueToInlines (MetaBlocks bs) = query return bs
203−metaValueToInlines (MetaBool b) = [Str $ show b]
204−metaValueToInlines _ = []
205−
206−
207−
208198writeDocx :: (PandocMonad m)
209199 => WriterOptions -- ^ Writer options
210200 -> Pandoc -- ^ Document to convert