fix: links support capitalized HTTP

This commit is contained in:
Tienson Qin
2020-11-19 15:29:04 +08:00
parent fde471b53b
commit b3df6ce33c

View File

@@ -461,7 +461,7 @@
(not= \* (last s)))
(->elem :a {:href (str "#" (anchor-link (subs s 1)))} (map-inline config label))
(re-find #"^http[s]?://" s)
(re-find #"^(?i)http[s]?://" s)
(->elem :a {:href s}
(map-inline config label))