-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ @package pandoc-slide-filter @version 0.1.0.0 module Text.Pandoc.Util.Filter.Quiz quiz :: Block -> [Block] module Text.Pandoc.Util.Filter -- | converts Attributes to String for usage in HTML -- -- Also converts width=xxx and height=xxx to the -- corresponding style-attributes attToString :: Attr -> String -- | helper function for attToString, but can also be used if you -- want to extract styles from kv-pair convertToStyle :: [String] -> [(String, String)] -> [(String, String)] -- | revealjs has some special attributes that has to be passed to the -- html, but Pandoc only allows key=value-attributes, so we have -- to abuse .class to rewrite them. -- -- The classes that get rewritten are listed here. -- -- You probably want classToRevealAttr, as that is a wrapper for -- splitting the class-attribute revealjsSpecialAttrs :: [String] -- | HTML allows for some attributes (i.e. autoplay) for which revealjs -- offers a special version (i.e. only autoplaying on active slide). -- These are the things that get rewritten revealjsRewriteAttr :: [String] -> [String] -- | revealjs has some special attributes that has to be passed to the -- html, but Pandoc only allows key=value-attributes, so we have -- to abuse .class to rewrite them. -- -- This is a wrapper-function which just splits the list into real -- classes and revealjsSpecialAttrs classToRevealAttr :: [String] -> ([String], [String]) -- | small wrapper around RawInline (Format "html") as this is -- less line-noise in the filters and the intent is more clear. toHtml :: String -> Inline -- | small wrapper around Raw (Format "html") as this is less -- line-noise in the filters and the intent is more clear. toBlockHtml :: String -> Block -- | adds a given String to the list if not in there; Does nothing if the -- given String is already present. addToAtt :: Eq a => a -> [a] -> [a] -- | adds given String to List of key-value-pairs (like in Attr) in -- the "style"-Key. -- -- Useful when trying to add CSS-styles directly to (generated) elements addToStyle :: String -> [(String, String)] -> [(String, String)] -- | Conversion of lvl-x-headings to x-column-layouts in HTML especially -- for use in revealjs-slides module Text.Pandoc.Util.Filter.Cols -- | This filter makes multi-column-layouts out of lvl-x-headings -- -- Syntax is -- --
--   ## a b
--   
-- -- yielding a 2-column-layout with aspects a:b i.e. 1:1 for 50/50-layout -- or 8:2 for 80/20 layout -- -- currently works for 2 and 3-columns, but extension is -- straight-forward. -- -- If you need multiple Block-Elements inside one column, just wrap them -- with a <div>: -- --
--   ## 2 5
--   
--   <div>
--   multiple things
--   ```
--   foo
--   ```
--    
--   </div>
--   
--   second column here with only 1 element.
--   
cols :: [Block] -> [Block] module Text.Pandoc.Util.Filter.Media -- | main media-plugin. -- -- Will convert the following syntax -- --
--   ![](foo.aac){#audio}
--   ![](foo.mp4){#video}
--   ![](foo.png){#img}
--   ![](foo.svg){#svg}
--   ![](foo.html){#demo}
--   
-- -- HTML-id's maybe ommitted if the file-extension is in whitelist. -- -- If a type is detected by extension a custom id (not matching the -- extension) will be preserved. media :: Inline -> IO [Inline] module Text.Pandoc.Util.Filter.Styling -- | Block-Styling -- -- Special cases captured: -- -- styling :: Block -> IO [Block] -- | Inline-Styling -- -- Special cases captured: -- -- inlineStyling :: Inline -> Inline