Fixed link regex
This commit is contained in:
parent
1437b079d4
commit
eba7517f65
|
@ -37,11 +37,11 @@
|
|||
"Process all inline elements of the LINE, return HTML."
|
||||
;; Finally 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 emphasis
|
||||
(replace-regexp-in-string
|
||||
|
|
Loading…
Reference in New Issue