markdown-viewer
markdown-viewer copied to clipboard
Violated github-flavoured-markdown footnotes rules for displaying
What the extension does emit:
Actual footnotes in github flavored markdown[^1][^2]:
The extension violates these rules:
- Square brackets
[
and]
, near the link to a footnote, should be emitted. It looks more recognizable and easier to click. - Text ids
[^note]
should translate into a number. That is common for footnotes (ever seen the else case, say, on wiki?). - There should be a humble
↩
text symbol. Not an ugly "↩" emoji. - Footnotes should be smaller than normal text, and grayed out.
Last but not least:
- github-flavoured-markdown has an accurate 1px of line separator for footnotes. Not some default browser's 4px[^3].
Just in case, my compiler options (gfm enabled):
P.S. I know this might be related to how "remark" package library renders, not to the extension. But I can't be sure where's the problem, gotta file it somewhere.
[^1]: Basic writing and formatting syntax - GitHub Docs
[^2]: Footnotes now supported in Markdown fields - GitHub Changelog
[^3]: Technically, Github, too, has some default 4px line for hr
tag, but they don't use it, and instead they use border-top: 1px solid var(--color-border-default)
css property, - for footnotes, and literally everywhere in their UI. Honestly I think they should change hr
to an accurate 1px, too, - but that is less related to the issue.
Oh, just forgot:
- By clicking on a footnote-link, the footnote gets selected also:
Seems like all of your concerns got fixed in the latest Remark version. Make sure you have the latest Markdown Viewer v5 that got released a few days ago. It is available on the Chrome Web Store and here in the releases section.