From dfc88a42f3cfdcdb90fc5a2c7c14f1c6a7ef728c Mon Sep 17 00:00:00 2001 From: j4nk Date: Tue, 5 Sep 2023 00:12:07 -0400 Subject: [PATCH] Attempted fixing link again --- md4tj.el | 2 +- test_file.md4tj | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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