aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2019-05-10 09:17:21 +0300
committerAlexander <ilabdsf@gmail.com>2019-05-15 13:31:07 +0300
commit2e13c0a451fe87ebd1ef2c314f7f98c40f3ec422 (patch)
tree1605436f78a79b8de8149c86fb5b29c5b6e79326 /src/Text/Pandoc
parentf1fbec938f0df271845ca00eec17d95a896136f8 (diff)
downloadpandoc-2e13c0a451fe87ebd1ef2c314f7f98c40f3ec422.tar.gz
FB2 writer: do not wrap note references into <sup> and brackets
Existing FB2 readers, such as FBReader, already display links with type="note" as a superscript.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/FB2.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/FB2.hs b/src/Text/Pandoc/Writers/FB2.hs
index 950240df5..d2527a0a9 100644
--- a/src/Text/Pandoc/Writers/FB2.hs
+++ b/src/Text/Pandoc/Writers/FB2.hs
@@ -439,7 +439,7 @@ toXml (Note bs) = do
let fn_id = footnoteID n
fn_desc <- cMapM blockToXml bs
modify (\s -> s { footnotes = (n, fn_id, fn_desc) : fns })
- let fn_ref = el "sup" . txt $ "[" ++ show n ++ "]"
+ let fn_ref = txt $ "[" ++ show n ++ "]"
return . list $ el "a" ( [ attr ("l","href") ('#':fn_id)
, uattr "type" "note" ]
, fn_ref )