diff --git a/md4tj_parse.el b/md4tj_parse.el index 50e8c4e..14d9836 100644 --- a/md4tj_parse.el +++ b/md4tj_parse.el @@ -154,7 +154,9 @@ (cond ((string= (nth 0 meta) "@@TITLE") (concat "" (mapconcat 'identity (cdr meta) " ") "\n")) ((string= (nth 0 meta) "@@META") - (concat (md4tj-begin-tag "meta" (md4tj-list-to-tuple-list (cdr meta))))))) + (concat (md4tj-begin-tag "meta" (md4tj-list-to-tuple-list (cdr meta))))) + ((string= (nth 0 meta) "@@CSS") + (concat (md4tj-begin-tag "link" (list (list "rel" "stylesheet") (list "href" (nth 1 meta)))))))) (defun md4tj-head () "Return text for head element on current buffer." diff --git a/test_css.css b/test_css.css new file mode 100644 index 0000000..adba509 --- /dev/null +++ b/test_css.css @@ -0,0 +1 @@ + body {background-color: #00ff00;} diff --git a/test_file.html b/test_file.html index 2bb18f0..4ca3b9e 100644 --- a/test_file.html +++ b/test_file.html @@ -2,6 +2,7 @@ + Test webpage @@ -10,6 +11,7 @@ +

Hello world!

Hello world!

Hello world!

diff --git a/test_file.md4tj b/test_file.md4tj index 6ff491d..e5c20a1 100644 --- a/test_file.md4tj +++ b/test_file.md4tj @@ -1,6 +1,7 @@ @@META charset UTF-8 @@META name viewport content width=device-width,initial-scale=1.0 @@TITLE Test webpage +@@CSS test_css.css # Hello `world`! ## Hello world! ### Hello world!