Fixed issue where greedy regex caused strong+em to convert wrong
This commit is contained in:
parent
f9135021e7
commit
c6a825c65a
4
md4tj.el
4
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
|
||||
"\\*\\(.*?\\)\\*"
|
||||
"\\*\\(.*+\\)\\*"
|
||||
"<em>\\1</em>"
|
||||
;; Then strong
|
||||
(replace-regexp-in-string
|
||||
"\\*\\*\\(.*?\\)\\*\\*"
|
||||
"\\*\\*\\(.*+\\)\\*\\*"
|
||||
"<strong>\\1</strong>"
|
||||
;; First code
|
||||
(replace-regexp-in-string
|
||||
|
|
Loading…
Reference in New Issue