Fixed issue where greedy regex caused strong+em to convert wrong

This commit is contained in:
j4nk 2024-03-30 20:14:53 -04:00
parent f9135021e7
commit c6a825c65a
1 changed files with 2 additions and 2 deletions

View File

@ -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
"\\*\\(.*?\\)\\*"
"\\*\\(.*+\\)\\*"
"<em>\\1</em>"
;; Then strong
(replace-regexp-in-string
"\\*\\*\\(.*?\\)\\*\\*"
"\\*\\*\\(.*+\\)\\*\\*"
"<strong>\\1</strong>"
;; First code
(replace-regexp-in-string