markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

link text for footnotes is wrong (using compiler _remark_)

Open salim-b opened this issue 6 years ago • 2 comments
trafficstars

Consider the following example Markdown document

# H1

blabla[^footnote-id]

[^footnote-id]: super-important footnote content.

which is rendered to (using remark as the compiler):

test md

Obviously, the superscript link text to the footnote after "blabla" should be the number 1 and not footnote-id. I don't know if this is a general problem with remark or specific to markdown-viewer.

salim-b avatar Dec 06 '18 16:12 salim-b

It is a long standing issue with remark, initially reported here https://github.com/simov/markdown-viewer/issues/35 Last time I checked it wasn't fixed, so I'll take a look at it during the next release cycle.

simov avatar Dec 06 '18 18:12 simov

Maybe this could be a solution for Remark: https://www.npmjs.com/package/remark-numbered-footnotes

The numbering works fine with markdown-it-footnote in Visual Studio Code's Markdown Footnotes extension.

ftrebien avatar May 12 '20 13:05 ftrebien

Seems to be fixed in Markdown Viewer v5.2 for both of the compilers that has support for footnotes: remark and markdown-it.

simov avatar Sep 27 '23 07:09 simov