git.iko.soy/typeable/pandoc
on master help sign in
HTML writer: Fixed footnote backrefs in --ascii mode.
commitfb5faaa91e32ee252eef2ca542c7666d800591e5 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 6 Feb 2011, 09:46 (16 years ago) parentaec5489
1 file changed+2−1
src/Text/Pandoc/Writers/HTML.hs+2−1
src/Text/Pandoc/Writers/HTML.hs+2−1
@@ -638,7 +638,8 @@ blockListToNote opts ref blocks =
638638 -- that block. Otherwise, insert a new Plain block with the backlink.
639639 let backlink = [RawInline "html" $ " <a href=\"#" ++ writerIdentifierPrefix opts ++ "fnref" ++ ref ++
640640 "\" class=\"footnoteBackLink\"" ++
641− " title=\"Jump back to footnote " ++ ref ++ "\">↩</a>"]
641+ " title=\"Jump back to footnote " ++ ref ++ "\">" ++
642+ (if writerAscii opts then "&#8617;" else "↩") ++ "</a>"]
642643 blocks' = if null blocks
643644 then []
644645 else let lastBlock = last blocks