From eb051f5d1780421bc2472e8bab87b76664e7bbe6 Mon Sep 17 00:00:00 2001 From: j4nk Date: Thu, 29 Dec 2022 08:12:19 -0500 Subject: [PATCH] Empty lines now output br tag instead of p tag --- md4tj_parse.el | 1 + test_file.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/md4tj_parse.el b/md4tj_parse.el index 4b72808..01b2803 100644 --- a/md4tj_parse.el +++ b/md4tj_parse.el @@ -62,6 +62,7 @@ "Process CODEBLOCK and return html." (cond ((string-match "^#+ " codeblock) (md4tj-process-header (md4tj-process-line codeblock))) ((string= "---" codeblock) "
") + ((= (length codeblock) 0) "
") (t (md4tj-process-paragraph (md4tj-process-line codeblock))))) (defun md4tj-next-block () diff --git a/test_file.html b/test_file.html index 50b2422..6c47304 100644 --- a/test_file.html +++ b/test_file.html @@ -2,6 +2,6 @@

Hello world!

Hello world!

Hello world!

-

+

Example website

Example image