markdown-mode
markdown-mode copied to clipboard
footnote text uses url face
Expected Behavior
footnote text face should match normal text face or footnote marker face.
Actual Behavior
footnote text face is actually url face which is quite misleading, as the text is not a url. is there a reason for this?
Steps to Reproduce
body copy[^1]
a [real link](http://example.com/a-true-url)
[^1]: footnote text
in this case, markdown mode will highlight both http://example.com/a-true-url
and footnote text
with the exact same face. I would expect the footnote text to be different, or at least to allow customization of it.
Backtrace
Software Versions
- Markdown Mode: 2.4
- Emacs: 28.0.50
- OS: archlinux 5.8.14 x86_64
thanks for this mode, I really appreciate it, especially the markup-hiding features!
markdown-mode does not support footnote except pandoc extension yet. And commonmark and GFM does not support footnote yet. However footnote syntax are matched as reference link(See original markdown specification https://daringfireball.net/projects/markdown/syntax) which accepts link/URL, so markdown-mode highlight it with markdown-url-face
If commonmark or GFM supports footnote, I'll define faces as you suggest.