diff --git a/md4tj_parse.el b/md4tj_parse.el index 97362a5..87355db 100644 --- a/md4tj_parse.el +++ b/md4tj_parse.el @@ -45,15 +45,15 @@ "\\1" ;; Then links (replace-regexp-in-string - "\\[\\([^\\[]*\\)](\\([^\\[]*\\))" + "\\[\\([^\\[]*\\)](\\([^\\[(]*\\))" (concat (md4tj-begin-tag "a" (list '("href" "\\2"))) "\\1" (md4tj-end-tag "a")) ;; Then images (replace-regexp-in-string - "!\\[\\([^\\[]*\\)](\\([^\\[]*\\))" + "!\\[\\([^\\[]*\\)](\\([^\\[(]*\\))" (md4tj-begin-tag "img" (list '("src" "\\2") '("alt" "\\1"))) ;; Then videos (replace-regexp-in-string - "!!\\[\\([^\\[]*\\)](\\([^\\[]*\\))" + "!!\\[\\([^\\[]*\\)](\\([^\\[(]*\\))" (concat (md4tj-begin-tag "video" (list '("src" "\\2") '("type" "video/webm") '("controls" "true"))) "\\1" (md4tj-end-tag "video")) ;; Then emphasis (replace-regexp-in-string diff --git a/test_file.html b/test_file.html index 370336b..cbba4e8 100644 --- a/test_file.html +++ b/test_file.html @@ -1,5 +1,5 @@ - + @@ -46,6 +46,7 @@ int main() {
-Last updated: Wed Jan 4 11:41:25 2023 +

Dungeon Crawl Stone Soup - My favorite FOSS roguelike (Yes, I know the greatest roguelike of all time is NetHack, I don't care).

+Last updated: Wed Jan 4 12:38:04 2023 \ No newline at end of file diff --git a/test_file.md4tj b/test_file.md4tj index 8856612..7ba91e2 100644 --- a/test_file.md4tj +++ b/test_file.md4tj @@ -27,4 +27,5 @@ int main() { return 0; } ``` +[Dungeon Crawl Stone Soup](https://crawl.develz.org) - My favorite FOSS roguelike (Yes, I know the greatest roguelike of all time is NetHack, I don't care). @@LASTUPDATED \ No newline at end of file