EPUB writer: Add id="toc-title" to h1 in nav.xhtml.

Closes #799.
This commit is contained in:
John MacFarlane 2013-03-24 22:41:00 -07:00
parent 7286ef1fc3
commit cb906e7512

View file

@ -332,7 +332,7 @@ writeEPUB opts doc@(Pandoc meta _) = do
, unode "link" ! [("rel","stylesheet"),("type","text/css"),("href","stylesheet.css")] $ () ]
, unode "body" $
unode navtag ! [("epub:type","toc") | epub3] $
[ unode "h1" plainTitle
[ unode "h1" ! [("id","toc-title")] $ plainTitle
, unode "ol" ! [("class","toc")] $ evalState (mapM (navPointNode navXhtmlFormatter) secs) 1]
]
let navEntry = mkEntry "nav.xhtml" navData