diff --git a/md4tj.el b/md4tj.el index 7d2a439..fbfebeb 100644 --- a/md4tj.el +++ b/md4tj.el @@ -71,7 +71,7 @@ "\\1" ;; Then links (replace-regexp-in-string - "\\[\\([^\\[]*\\)](\\([a-zA-Z0-9:/\\.@-#_%&\\(\\)!\\?,]*\\))" + "\\[\\([^\\[]*\\)\\](\\([^ ]*\\))" (concat (md4tj-begin-tag "a" (list '("href" "\\2"))) "\\1" (md4tj-end-tag "a")) ;; Then images (replace-regexp-in-string diff --git a/test_file.md4tj b/test_file.md4tj index cf36afa..cd7978f 100644 --- a/test_file.md4tj +++ b/test_file.md4tj @@ -37,4 +37,5 @@ This is a div that has monospace text. [Sam & Max Hit The Road](https://en.wikipedia.org/wiki/Sam_%26_Max_Hit_the_Road) [The Void](https://en.wikipedia.org/wiki/The_Void_(video_game)) [The Operative: No One Lives Forever](https://en.wikipedia.org/wiki/The_Operative:_No_One_Lives_Forever) -[Joy, Departed](https://en.wikipedia.org/wiki/Talk:Joy,_Departed) \ No newline at end of file +[Joy, Departed](https://en.wikipedia.org/wiki/Talk:Joy,_Departed) +[Logitech G13](https://support.logi.com/hc/en-us/articles/360023467053-G13-Technical-Specifications) \ No newline at end of file