From ae47e69c2ae48b251b150afd3ac0e44b87f21a97 Mon Sep 17 00:00:00 2001 From: j4nk Date: Mon, 4 Sep 2023 23:57:21 -0400 Subject: [PATCH] Hopefully finally fixed issues with links --- blog/feed.xml | 2 +- md4tj.el | 2 +- test_file.html | 12 ++++++++++-- test_file.md4tj | 7 ++++++- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/blog/feed.xml b/blog/feed.xml index f59a9f9..15ec3ab 100644 --- a/blog/feed.xml +++ b/blog/feed.xml @@ -1,4 +1,4 @@ -RSS Testhttp://example.comAn example blog for testing RSS capability of md4tj.en-USTue, 10 Jun 2003 04:00:00 GMTeditor@example.comwebmaster@example.comhttps://www.rssboard.org/rss-specificationmd4tj-rss.elTue, 11 Jul 2023 18:56:34 GMTBlog Post 2https://example.com/blog/blogpost2.htmlhttps://example.com/blog/blogpost2.html +RSS Testhttp://example.comAn example blog for testing RSS capability of md4tj.en-USTue, 10 Jun 2003 04:00:00 GMTeditor@example.comwebmaster@example.comhttps://www.rssboard.org/rss-specificationmd4tj-rss.elMon, 04 Sep 2023 23:56:59 GMTBlog Post 2https://example.com/blog/blogpost2.htmlhttps://example.com/blog/blogpost2.html <br> diff --git a/md4tj.el b/md4tj.el index 651557a..7d2a439 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.html b/test_file.html index 9011ca1..4d9d4bd 100644 --- a/test_file.html +++ b/test_file.html @@ -75,10 +75,18 @@ int main() {

This is a div that has monospace text.

-

Last updated: Tue Jul 11 18:56:34 2023

+

Last updated: Mon Sep 4 23:56:59 2023


-

The R-Box Podcast - A bunch of my childhood friends decided to band up and create a podcast while they were living together. This is the result, basically a distillation of our inside jokes and humor in three glorous episodes. I don't talk to these guys much anymore, but as far as I can tell it's never coming back. Probably only funny to people who know them personally (like me), but who knows? I recorded an episode with them as a guest a while back when I was back in town, but I guess I was such a terrible guest they didn't bother uploading it.

+

[The R-Box Podcast](https://www.youtube.com/@ther-boxpodcast8099/) - A bunch of my childhood friends decided to band up and create a podcast while they were living together. This is the result, basically a distillation of our inside jokes and humor in three glorous episodes. I don't talk to these guys much anymore, but as far as I can tell it's never coming back. Probably only funny to people who know them personally (like me), but who knows? I recorded an episode with them as a guest a while back when I was back in town, but I guess I was such a terrible guest they didn't bother uploading it.

+ +
+ +

Sam & Max Hit The Road

+ +

The Void

+ +

The Operative: No One Lives Forever

\ No newline at end of file diff --git a/test_file.md4tj b/test_file.md4tj index db5f1db..cf36afa 100644 --- a/test_file.md4tj +++ b/test_file.md4tj @@ -32,4 +32,9 @@ This is a div that has monospace text. @@ENDDIV @@LASTUPDATED -[The R-Box Podcast](https://www.youtube.com/@ther-boxpodcast8099/) - A bunch of my childhood friends decided to band up and create a podcast while they were living together. This is the result, basically a distillation of our inside jokes and humor in three glorous episodes. I don't talk to these guys much anymore, but as far as I can tell it's never coming back. Probably only funny to people who know them personally (like me), but who knows? I recorded an episode with them as a guest a while back when I was back in town, but I guess I was such a terrible guest they didn't bother uploading it. \ No newline at end of file +[The R-Box Podcast](https://www.youtube.com/@ther-boxpodcast8099/) - A bunch of my childhood friends decided to band up and create a podcast while they were living together. This is the result, basically a distillation of our inside jokes and humor in three glorous episodes. I don't talk to these guys much anymore, but as far as I can tell it's never coming back. Probably only funny to people who know them personally (like me), but who knows? I recorded an episode with them as a guest a while back when I was back in town, but I guess I was such a terrible guest they didn't bother uploading it. + +[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