Safe Haskell | None |
---|---|
Language | Haskell2010 |
- attToString :: Attr -> String
- revealjsSpecialAttrs :: [String]
- classToRevealAttr :: [String] -> ([String], [String])
- toHtml :: String -> Inline
- toBlockHtml :: String -> Block
- addToAtt :: Eq a => a -> [a] -> [a]
- addToStyle :: String -> [(String, String)] -> [(String, String)]
Documentation
attToString :: Attr -> String Source #
converts Attributes to String for usage in HTML
Also converts width=xxx
and height=xxx
to the
corresponding style-attributes
revealjsSpecialAttrs :: [String] Source #
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
classToRevealAttr :: [String] -> ([String], [String]) Source #
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
toHtml :: String -> Inline Source #
small wrapper around RawInline (Format "html")
as this is less line-noise in the filters and the
intent is more clear.
toBlockHtml :: String -> Block Source #
small wrapper around Raw (Format "html")
as this is less line-noise in the filters and the
intent is more clear.