expand-0.0.1: Extensible Pandoc

Safe HaskellNone

Document.Semantics.NumberedHeaders

Synopsis

Documentation

updateHeaderNum :: Int -> [Int] -> [Int]Source

Computes the header number from the level and its parent header number.

formatNH :: [Int] -> StringSource

Formats a header number, i.e. [3,1,4] becomes 3.1.4

default_cHeaderNum :: (HasField (Proxy Att_cHeaderNum) ip val, Chain' msp (Proxy Att_cHeaderNum) (HCons (Proxy BlockL) (HCons (Proxy Block) HNil)) val sc l ho ic sp ic' sp', HasLabel (Proxy Att_cHeaderNum) sp msp) => Rule lf hof sc ip l ho ic sp l ho ic' sp'Source

document_cHeaderNum :: (SingleDef mch HTrue (Proxy Att_cHeaderNum) (Chi (Proxy (Ch_blocks, [Block])) [Int]) ic' ic'1, HasLabel (Proxy (Ch_blocks, [Block])) ic' mch) => Rule lf hof sc ip l ho ic' sp l ho ic'1 spSource

header_cHeaderNum :: (HExtend (Att (Proxy Att_cHeaderNum) a) sp sp', HasField (Proxy Att_headerNum) lf a) => Rule lf ho chi par l ho1 ic sp l ho1 ic sp'Source

header_headerNum :: (HExtend (Att (Proxy Att_headerNum) [Int]) l1 l', HasField (Proxy (Ch_level_header, Int)) chi Int, HasField (Proxy Att_cHeaderNum) par [Int]) => Rule l ho chi par l1 ho1 ic sp l' ho1 ic spSource