backend-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Language.Ltml.HTML.FormatString

Synopsis

HeadingFormat Types

headingFormatId :: forall (permitId :: Bool). HeadingFormat permitId -> Html () -> Html () -> Html () Source #

Builds Heading Html based on given Format, id and text html

headingFormat :: HeadingFormat 'False -> Html () -> Html () Source #

Builds Heading Html based on given Format and text html

Section and Paragraph Format

sectionFormat :: SectionFormat -> Int -> Int -> (Html (), Html ()) Source #

Returns (ID Html, ToC Key Html) for a Section; uses ID Html to build ToC Key Html

paragraphFormat :: ParagraphFormat -> Int -> Int -> (Html (), Html ()) Source #

Returns (ID Html, ToC Key Html) for a Paragraph; uses ID Html to build Paragraph Key Html

IdentifierFormat

identifierFormat :: IdentifierFormat -> Int -> Int -> Html () Source #

Builds id Html based on given FormatString and id.

Enum Counter Class Generation

enumFormat :: EnumFormat -> ReaderT ReaderState (State GlobalState) Text Source #

Converts EnumFormat to CSS class and manages global enum style map with unique classes

Building Enum Counters into CSS

buildCssCounters :: EnumStyleMap -> Css Source #

Builds CSS classes from EnumFormats and class names

AppendixFormat

appendixFormat :: IdentifierFormat -> Int -> TocKeyFormat -> HeadingFormat 'True -> Delayed (Html ()) -> (Delayed (Html ()), Html ()) Source #

Builds (Heading Html, ToC Key Html) using the required formats, an Id and a title Html