@@ -174,7 +174,7 @@ notesToMarkdown opts notes =
174noteToMarkdown :: WriterOptions -> Int -> [Block] -> State WriterState Doc
174noteToMarkdown :: WriterOptions -> Int -> [Block] -> State WriterState Doc
175noteToMarkdown opts num blocks = do
175noteToMarkdown opts num blocks = do
176 contents <- blockListToMarkdown opts blocks
176 contents <- blockListToMarkdown opts blocks
177− let num' = text $ show num
177+ let num' = text $ writerIdentifierPrefix opts ++ show num
178 let marker = if isEnabled Ext_footnotes opts
178 let marker = if isEnabled Ext_footnotes opts
179 then text "[^" <> num' <> text "]:"
179 then text "[^" <> num' <> text "]:"
180 else text "[" <> num' <> text "]"
180 else text "[" <> num' <> text "]"
@@ -655,7 +655,7 @@ inlineToMarkdown opts (Image alternate (source, tit)) = do
655inlineToMarkdown opts (Note contents) = do
655inlineToMarkdown opts (Note contents) = do
656 modify (\st -> st{ stNotes = contents : stNotes st })
656 modify (\st -> st{ stNotes = contents : stNotes st })
657 st <- get
657 st <- get
658− let ref = show $ (length $ stNotes st)
658+ let ref = text $ writerIdentifierPrefix opts ++ show (length $ stNotes st)
659 if isEnabled Ext_footnotes opts
659 if isEnabled Ext_footnotes opts
660− then return $ "[^" <> text ref <> "]"
660+ then return $ "[^" <> ref <> "]"
661− else return $ "[" <> text ref <> "]"
661+ else return $ "[" <> ref <> "]"