From 0e2d7e7aeb99dc47684a61a29a9c1e551b7f642b Mon Sep 17 00:00:00 2001 From: j4nk Date: Wed, 28 Feb 2024 19:14:20 -0500 Subject: [PATCH] Made strikethrough, highlight, strong, and em greedier --- md4tj.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/md4tj.el b/md4tj.el index ddb6a9e..ba3033d 100644 --- a/md4tj.el +++ b/md4tj.el @@ -63,11 +63,11 @@ "Process all inline elements of the LINE, return HTML." ;; Finally strikethrough (replace-regexp-in-string - "~~\\(.*\\)~~" + "~~\\(.*?\\)~~" "\\1" ;; Then highlight (replace-regexp-in-string - "==\\(.*\\)==" + "==\\(.*?\\)==" "\\1" ;; Then links (replace-regexp-in-string @@ -83,11 +83,11 @@ (concat (md4tj-begin-tag "video" (list '("src" "\\2") '("type" "video/webm") '("controls" "true"))) "\\1" (md4tj-end-tag "video")) ;; Then emphasis (replace-regexp-in-string - "\\*\\(.*\\)\\*" + "\\*\\(.*?\\)\\*" "\\1" ;; Then strong (replace-regexp-in-string - "\\*\\*\\(.*\\)\\*\\*" + "\\*\\*\\(.*?\\)\\*\\*" "\\1" ;; First code (replace-regexp-in-string