then H.a ! HA.href ("#"<>attrify pos) $$ mempty
else
H.td ! HA.class_ "figure-number" $$ do
- H.a ! HA.href ("#"<>attrify pos) $$ do
+ H.a ! HA.href ("#"<>attrify (DTC.posAncestorsWithFigureNames pos)) $$ do
html5ify type_
- html5ify $ DTC.posAncestors pos
- forM_ mayTitle $ \title ->
- H.td ! HA.class_ "figure-title" $$ do
+ html5ify $ DTC.posAncestorsWithFigureNames pos
+ forM_ mayTitle $ \title -> do
+ H.td ! HA.class_ "figure-colon" $$ do
unless (TL.null type_) $ do
Loqualization loc <- liftStateMarkup $ S.gets state_l10n
Plain.l10n_Colon loc
+ H.td ! HA.class_ "figure-title" $$ do
html5ify title
H.div ! HA.class_ "figure-content" $$ do
html5ify paras
font-weight:bold;
vertical-align:top;
}
- .figure .figure-caption td.figure-number {
+ .figure .figure-caption .figure-colon {
+ font-weight:bold;
+ vertical-align:top;
}
.figure .figure-caption .figure-title {
+ padding-left:1ex;
text-align:left;
vertical-align:middle;
}