From 2e13c0a451fe87ebd1ef2c314f7f98c40f3ec422 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Fri, 10 May 2019 09:17:21 +0300 Subject: FB2 writer: do not wrap note references into and brackets Existing FB2 readers, such as FBReader, already display links with type="note" as a superscript. --- src/Text/Pandoc/Writers/FB2.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ) -- cgit v1.2.3