aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimm Albers <timmm.albers@gmail.com>2017-04-03 16:59:53 +0200
committerTimm Albers <timmm.albers@gmail.com>2017-04-03 17:02:16 +0200
commit3e817124fe58bf4dbe23fbc93062eb5d34382148 (patch)
tree51a3aceca5aa79fb4d069506757fe0d1ee29fa79 /src
parent13cee8c32fb941383e62ab1309904736e25c1b06 (diff)
downloadpandoc-3e817124fe58bf4dbe23fbc93062eb5d34382148.tar.gz
Add class to footnote back references
The HTML writer now also adds the class footnoteBack to back references of footnotes. This allows for easier CSS styling.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/HTML.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs
index 42726bc61..ef5e6b416 100644
--- a/src/Text/Pandoc/Writers/HTML.hs
+++ b/src/Text/Pandoc/Writers/HTML.hs
@@ -1047,7 +1047,7 @@ blockListToNote :: PandocMonad m => WriterOptions -> String -> [Block] -> StateT
blockListToNote opts ref blocks =
-- If last block is Para or Plain, include the backlink at the end of
-- that block. Otherwise, insert a new Plain block with the backlink.
- let backlink = [Link nullAttr [Str "↩"] ("#" ++ writerIdentifierPrefix opts ++ "fnref" ++ ref,[])]
+ let backlink = [Link ("",["footnoteBack"],[]) [Str "↩"] ("#" ++ writerIdentifierPrefix opts ++ "fnref" ++ ref,[])]
blocks' = if null blocks
then []
else let lastBlock = last blocks