hakyll-std/TableOfContents: remove unused function removeTOCMarker

This commit is contained in:
Everett Hildenbrandt 2018-04-27 01:32:52 -06:00 committed by Simon Michael
parent 3d1c5359a3
commit 6b576a7e2d

View File

@ -7,7 +7,6 @@ module TableOfContents (
tableOfContents,
ignoreTOC,
collectHeaders,
removeTOCMarker
) where
import Text.Pandoc
@ -38,10 +37,6 @@ ignoreTOC (Header level (ident, classes, params) inline) =
Header level (ident, "notoc" : classes, params) inline
ignoreTOC x = x
removeTOCMarker :: Block -> Block
removeTOCMarker (BulletList (( (( Plain ((Str "toc"):_)):_)):_)) = Null
removeTOCMarker x = x
collectHeaders :: Block -> [Block]
collectHeaders header@(Header _ (_, classes, _) _) =
if "notoc" `elem` classes