EPUB writer: add epub:type="footnotes" to notes section in EPUB3.
Closes #4489.
This commit is contained in:
parent
7f97b04862
commit
c997f112b7
1 changed files with 5 additions and 0 deletions
|
@ -478,7 +478,12 @@ footnoteSection opts notes = do
|
|||
html5 <- gets stHtml5
|
||||
slideVariant <- gets stSlideVariant
|
||||
let hrtag = if html5 then H5.hr else H.hr
|
||||
epubVersion <- gets stEPUBVersion
|
||||
let container x
|
||||
| html5
|
||||
, epubVersion == Just EPUB3
|
||||
= H5.section ! A.class_ "footnotes"
|
||||
! customAttribute "epub:type" "footnotes" $ x
|
||||
| html5 = H5.section ! A.class_ "footnotes" $ x
|
||||
| slideVariant /= NoSlides = H.div ! A.class_ "footnotes slide" $ x
|
||||
| otherwise = H.div ! A.class_ "footnotes" $ x
|
||||
|
|
Loading…
Add table
Reference in a new issue