@@ 2,7 2,7 @@
-- | Bindings from `xml-conduit` to `haskell-stylist`.
module Data.HTML2CSS(
html2css, cssPriorityAgent, cssPriorityUser, cssPriorityAuthor, -- parsing
- preorder, el2styletree, els2stylist, el2stylist, stylize, stylize' -- application
+ preorder, el2styletree, els2stylist, el2stylist, stylize, stylize', stylizeEl -- application
) where
import qualified Data.List as L
@@ 110,3 110,4 @@ stylize' stylesheet parent _ el = [
base = cascade stylesheet el overrides $ fromMaybe temp $ lookup "" =<< parent
overrides = concat [fst $ parseProperties' $ tokenize $ Txt.pack val
| Attribute "style" _ val <- attributes el]
+stylizeEl stylesheet = stylize stylesheet . el2stylist
@@ 10,7 10,7 @@ name: xml-conduit-stylist
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
-version: 1.2.0.0
+version: 2.0.0.0
-- A short (one-line) description of the package.
synopsis: Bridge between xml-conduit/html-conduit and stylist