From ea65c1ed2d7ff8f4f61c0ee5ce342c877d12b93f Mon Sep 17 00:00:00 2001 From: j4nk Date: Thu, 29 Dec 2022 11:51:11 -0500 Subject: [PATCH] tag attributes now quoted --- md4tj_parse.el | 2 +- test_file.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/md4tj_parse.el b/md4tj_parse.el index ff10ab8..982ee6c 100644 --- a/md4tj_parse.el +++ b/md4tj_parse.el @@ -13,7 +13,7 @@ (defun md4tj-begin-tag (tag &optional attrs) "Return beginning html tag for TAG with optional ATTRS." (concat "<" tag - (mapconcat 'identity (cl-map 'listp (lambda (l) (concat " " (nth 0 l) "=" (nth 1 l))) attrs) "") + (mapconcat 'identity (cl-map 'listp (lambda (l) (concat " " (nth 0 l) "=" "\"" (nth 1 l) "\"")) attrs) "") ">")) (defun md4tj-end-tag (tag) diff --git a/test_file.html b/test_file.html index b7c2d9a..878c267 100644 --- a/test_file.html +++ b/test_file.html @@ -4,8 +4,8 @@

Hello world!

Hello world!


-

Example website

-

Example

+

Example website

+

Example image