@@ -174,7 +174,7 @@ notesToMarkdown opts notes =
174174noteToMarkdown :: WriterOptions -> Int -> [Block] -> State WriterState Doc
175175noteToMarkdown opts num blocks = do
176176 contents <- blockListToMarkdown opts blocks
177− let num' = text $ show num
177+ let num' = text $ writerIdentifierPrefix opts ++ show num
178178 let marker = if isEnabled Ext_footnotes opts
179179 then text "[^" <> num' <> text "]:"
180180 else text "[" <> num' <> text "]"
@@ -655,7 +655,7 @@ inlineToMarkdown opts (Image alternate (source, tit)) = do
655655inlineToMarkdown opts (Note contents) = do
656656 modify (\st -> st{ stNotes = contents : stNotes st })
657657 st <- get
658− let ref = show $ (length $ stNotes st)
658+ let ref = text $ writerIdentifierPrefix opts ++ show (length $ stNotes st)
659659 if isEnabled Ext_footnotes opts
660− then return $ "[^" <> text ref <> "]"
661− else return $ "[" <> text ref <> "]"
660+ then return $ "[^" <> ref <> "]"
661+ else return $ "[" <> ref <> "]"