mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-27 18:56:34 +00:00
HTML writer: Use <section> for footnotes if html5.
This commit is contained in:
@@ -253,10 +253,12 @@ footnoteSection :: WriterOptions -> [Html] -> Html
|
||||
footnoteSection opts notes =
|
||||
if null notes
|
||||
then noHtml
|
||||
else nl opts +++ (thediv ! [theclass "footnotes"]
|
||||
else nl opts +++ (container
|
||||
$ nl opts +++ hr +++ nl opts +++
|
||||
(olist << (notes ++ [nl opts])) +++ nl opts)
|
||||
|
||||
where container = if writerHtml5 opts
|
||||
then tag "section" ! [theclass "footnotes"]
|
||||
else thediv ! [theclass "footnotes"]
|
||||
|
||||
-- | Parse a mailto link; return Just (name, domain) or Nothing.
|
||||
parseMailto :: String -> Maybe (String, String)
|
||||
|
||||
Reference in New Issue
Block a user