fix: Markdown links without extension does not work

close #2652
pull/2669/head
Tienson Qin 2021-08-18 23:12:30 +08:00
parent e87f83c395
commit 13dea5ebdd
1 changed files with 3 additions and 0 deletions

View File

@ -841,6 +841,9 @@
(not= \* (last s)))
(->elem :a {:on-click #(route-handler/jump-to-anchor! (mldoc/anchorLink (subs s 1)))} (subs s 1))
(not (string/includes? s "."))
(page-reference (:html-export? config) s config label)
(util/safe-re-find #"(?i)^http[s]?://" s)
(->elem :a {:href s
:data-href s