Downcase reference labels in markdown-get-defined-references
commitb317df506a70ba86f7e3a838d5e6d0c412fe15eb
authorDmitry Dzhus <dima@dzhus.org>
Sat, 24 Mar 2018 22:04:33 +0000 (24 22:04 +0000)
committerJason Blevins <jblevins@xbeta.org>
Sat, 26 May 2018 02:52:02 +0000 (25 22:52 -0400)
tree5a205450537ca13e45145311e8d411ddfd5cb0b9
parentd5f50651aeea2e9b1e7f4c257c3f7ebe5aba1143
Downcase reference labels in markdown-get-defined-references

As per https://daringfireball.net/projects/markdown/syntax#link and
http://spec.commonmark.org/0.28/#matches link labels are
case-insensitive, so it shouldn't make sense to have

[mylink]: http://foo1.bar

[MyLink]: http://baz1.foo

defined in the same document.

By downcasing everything in markdown-get-defined-references we make
sure that such duplicate links don't show up in markdown-insert-link
completion list
markdown-mode.el