diff options
author | John MacFarlane <jgm@berkeley.edu> | 2013-11-12 18:48:06 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2013-11-12 18:48:06 -0800 |
commit | b4441c940dc76d1a64636ef88287b38306ebccb4 (patch) | |
tree | 5f81cba67e05b8d2fe8d822d735b694ca9e738be /src/Text/Pandoc/Writers | |
parent | fa1530285bad425771fc93d83aaf0d816ca31338 (diff) | |
download | pandoc-b4441c940dc76d1a64636ef88287b38306ebccb4.tar.gz |
HTML/EPUB footnotes: Put `<sup>` tag inside `<a>` tags.
This allows better control of formatting, since the `<a>`
tags have a distinguishing class.
Closes #1049.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/HTML.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index c1cca291b..424843539 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -757,11 +757,11 @@ inlineToHtml opts inline = writerIdentifierPrefix opts ++ "fn" ++ ref) ! A.class_ "footnoteRef" ! prefixedId opts ("fnref" ++ ref) + $ H.sup $ toHtml ref - let link' = case writerEpubVersion opts of - Just EPUB3 -> link ! customAttribute "epub:type" "noteref" - _ -> link - return $ H.sup $ link' + return $ case writerEpubVersion opts of + Just EPUB3 -> link ! customAttribute "epub:type" "noteref" + _ -> link (Cite cits il)-> do contents <- inlineListToHtml opts il let citationIds = unwords $ map citationId cits let result = H.span ! A.class_ "citation" $ contents |