Just (secNotes, state_notes) -> do
liftStateMarkup $ S.modify' $ \s -> s{state_notes}
html5ify secNotes
- H.section ! HA.class_ "section"
- ! HA.id (attrify pos) $$ do
- forM_ aliases html5ify
- html5CommonAttrs attrs{classes="section-header":classes attrs} $
- H.table $$
+ html5CommonAttrs attrs{classes="section":classes attrs} $
+ H.section ! HA.id (attrify pos) $$ do
+ forM_ aliases html5ify
+ H.table ! HA.class_ "section-header" $$
H.tbody $$
H.tr $$ do
H.td ! HA.class_ "section-number" $$ do
5 -> H.h6
_ -> H.h6) $$
html5ify title
- forM_ (Tree.axis_child `Tree.runAxis` z) $
- html5ify
- notes <- liftStateMarkup $ S.gets state_notes
- html5ify $ Map.lookup (posAncestors pos) notes
+ forM_ (Tree.axis_child `Tree.runAxis` z) $
+ html5ify
+ notes <- liftStateMarkup $ S.gets state_notes
+ html5ify $ Map.lookup (posAncestors pos) notes
instance Html5ify [Anchor.Note] where
html5ify notes =
H.aside ! HA.class_ "notes" $$ do