mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-25 19:31:44 +03:00
hakyll-std/TableOfContents: remove unused function removeTOCMarker
This commit is contained in:
parent
3d1c5359a3
commit
6b576a7e2d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user