From c6a825c65ad308403a70c63941826d0e4d0f066b Mon Sep 17 00:00:00 2001 From: j4nk Date: Sat, 30 Mar 2024 20:14:53 -0400 Subject: [PATCH] Fixed issue where greedy regex caused strong+em to convert wrong --- md4tj.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/md4tj.el b/md4tj.el index ab2ce91..f6a28f5 100644 --- a/md4tj.el +++ b/md4tj.el @@ -84,11 +84,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