Safe Haskell | None |
---|---|
Language | Haskell2010 |
Infrastructure for parsing & desugaring text related CSS properties.
Synopsis
- data CSSInline = CSSInline Text SpanOptions
- data ParagraphBuilder = ParagraphBuilder Text [Span]
- buildParagraph :: CSSInline -> ParagraphBuilder
- concatParagraph :: ParagraphBuilder -> ParagraphBuilder -> ParagraphBuilder
- finalizeParagraph :: ParagraphBuilder -> Font' -> Maybe Paragraph
Documentation
Document text with Balkón styling options, CSS stylable.
Instances
PropertyParser CSSInline Source # | |
Defined in Graphics.Layout.Inline.CSS |
data ParagraphBuilder Source #
Helper datastructure for concatenating CSSInlines.
buildParagraph :: CSSInline -> ParagraphBuilder Source #
Convert a CSSInline to a paragraph builder, with a span covering the entire text.
concatParagraph :: ParagraphBuilder -> ParagraphBuilder -> ParagraphBuilder Source #
Concatenate two ParagraphBuilder
s, adjusting the spans appropriately.
finalizeParagraph :: ParagraphBuilder -> Font' -> Maybe Paragraph Source #
Convert a builder + font to a Balkón paragraph.