diff options
author | Kleidukos <hecate+github@glitchbra.in> | 2020-03-19 16:02:31 +0100 |
---|---|---|
committer | Alec Theriault <alec.theriault@gmail.com> | 2020-03-19 12:38:31 -0400 |
commit | 9a737d67d97ec4310b1ae89de640093c9d89e372 (patch) | |
tree | 03bfe65fe6352cf7032bec7cddc5b6f6c7de266b /haddock-api/src/Haddock/Backends | |
parent | be8b02c4e3cffe7d45b3dad0a0f071d35a274d65 (diff) |
Replace the 'caption' class so that the collapsible sections are shown
Diffstat (limited to 'haddock-api/src/Haddock/Backends')
-rw-r--r-- | haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs b/haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs index 1901cf05..edab4b16 100644 --- a/haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs +++ b/haddock-api/src/Haddock/Backends/Xhtml/DocMarkup.hs @@ -182,7 +182,7 @@ hackMarkup fmt' currPkg h' = UntouchedDoc d -> (markup fmt $ _doc d, [_meta d]) CollapsingHeader (Header lvl titl) par n nm -> let id_ = makeAnchorId $ "ch:" ++ fromMaybe "noid:" nm ++ show n - col' = collapseControl id_ "caption" + col' = collapseControl id_ "subheading" summary = thesummary ! [ theclass "hide-when-js-enabled" ] << "Expand" instTable contents = collapseDetails id_ DetailsClosed (summary +++ contents) lvs = zip [1 .. ] [h1, h2, h3, h4, h5, h6] |