From e2ed3b9d8dfab09f1b1861dbc8e74f08e137ebcc Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Tue, 28 Oct 2014 21:57:49 +0000 Subject: Experimental support for collapsable headers Closes #335 --- doc/haddock.xml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'doc/haddock.xml') diff --git a/doc/haddock.xml b/doc/haddock.xml index 03970517..662aafd3 100644 --- a/doc/haddock.xml +++ b/doc/haddock.xml @@ -29,7 +29,7 @@ Simon Marlow, David Waern - This document describes Haddock version 2.15.0, a Haskell + This document describes Haddock version 2.15.1, a Haskell documentation tool. @@ -2143,7 +2143,7 @@ This belongs to the list above! -- | --- = Heading level 1 with some __bold__ +-- = Heading level 1 with some /emphasis/ -- Something underneath the heading. -- -- == /Subheading/ @@ -2167,6 +2167,25 @@ This belongs to the list above! -- -- === Subsubheading -- >>> examples are only allowed at the start of paragraphs + + + As of 2.15.1, there's experimental (read: subject to + change or get removed) support for collapsible headers: simply + wrap your existing header title in underscores, as per bold + syntax. The collapsible section will stretch until the end of + the comment or until a header of equal or smaller number of + =s. + + +-- | +-- === __Examples:__ +-- >>> Some very long list of examples +-- +-- ==== This still falls under the collapse +-- Some specialised examples +-- +-- === This is does not go into the collapsable section. +-- More content. -- cgit v1.2.3