mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-30 04:06:45 +00:00
HTML writer: Fixed footnote backrefs in --ascii mode.
This commit is contained in:
@@ -638,7 +638,8 @@ blockListToNote opts ref blocks =
|
||||
-- that block. Otherwise, insert a new Plain block with the backlink.
|
||||
let backlink = [RawInline "html" $ " <a href=\"#" ++ writerIdentifierPrefix opts ++ "fnref" ++ ref ++
|
||||
"\" class=\"footnoteBackLink\"" ++
|
||||
" title=\"Jump back to footnote " ++ ref ++ "\">↩</a>"]
|
||||
" title=\"Jump back to footnote " ++ ref ++ "\">" ++
|
||||
(if writerAscii opts then "↩" else "↩") ++ "</a>"]
|
||||
blocks' = if null blocks
|
||||
then []
|
||||
else let lastBlock = last blocks
|
||||
|
||||
Reference in New Issue
Block a user