markdown-viewer
markdown-viewer copied to clipboard
link text for footnotes is wrong (using compiler _remark_)
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):

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.
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.
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.
Seems to be fixed in Markdown Viewer v5.2 for both of the compilers that has support for footnotes: remark and markdown-it.