pandoc-2.5: Conversion between markup formats

Copyright | Copyright (C) 2012-2018 John MacFarlane
License | GNU GPL, version 2 or above
Maintainer | John MacFarlane <jgm@berkeley.edu>
Stability | alpha
Portability | portable
Safe Haskell | None
Language | Haskell2010

Text.Pandoc.Writers.OOXML

Description

Functions common to OOXML writers (Docx and Powerpoint)

Synopsis

- mknode :: Node t => String -> [(String, String)] -> t -> Element
- nodename :: String -> QName
- toLazy :: ByteString -> ByteString
- renderXml :: Element -> ByteString
- parseXml :: PandocMonad m => Archive -> Archive -> String -> m Element
- elemToNameSpaces :: Element -> NameSpaces
- elemName :: NameSpaces -> String -> String -> QName
- isElem :: NameSpaces -> String -> String -> Element -> Bool
- type NameSpaces = [(String, String)]
- fitToPage :: (Double, Double) -> Integer -> (Integer, Integer)

# Documentation

mknode :: Node t => String -> [(String, String)] -> t -> Element Source #

nodename :: String -> QName Source #

toLazy :: ByteString -> ByteString Source #

renderXml :: Element -> ByteString Source #

parseXml :: PandocMonad m => Archive -> Archive -> String -> m Element Source #

elemToNameSpaces :: Element -> NameSpaces Source #

elemName :: NameSpaces -> String -> String -> QName Source #

isElem :: NameSpaces -> String -> String -> Element -> Bool Source #

type NameSpaces = [(String, String)] Source #

fitToPage :: (Double, Double) -> Integer -> (Integer, Integer) Source #

Scales the image to fit the page sizes are passed in emu