Empty lines now output br tag instead of p tag

This commit is contained in:
j4nk 2022-12-29 08:12:19 -05:00
parent b23bf09ebf
commit eb051f5d17
2 changed files with 2 additions and 1 deletions

View File

@ -62,6 +62,7 @@
"Process CODEBLOCK and return html." "Process CODEBLOCK and return html."
(cond ((string-match "^#+ " codeblock) (md4tj-process-header (md4tj-process-line codeblock))) (cond ((string-match "^#+ " codeblock) (md4tj-process-header (md4tj-process-line codeblock)))
((string= "---" codeblock) "<hr>") ((string= "---" codeblock) "<hr>")
((= (length codeblock) 0) "<br/>")
(t (md4tj-process-paragraph (md4tj-process-line codeblock))))) (t (md4tj-process-paragraph (md4tj-process-line codeblock)))))
(defun md4tj-next-block () (defun md4tj-next-block ()

View File

@ -2,6 +2,6 @@
<h2>Hello world!</h2> <h2>Hello world!</h2>
<h3>Hello world!</h3> <h3>Hello world!</h3>
<h4>Hello <strong><em>world</em></strong>!</h4> <h4>Hello <strong><em>world</em></strong>!</h4>
<p></p> <br/>
<p><a href=https://example.com>Example website</a></p> <p><a href=https://example.com>Example website</a></p>
<p><a href=image.jpg>Example image</a></p> <p><a href=image.jpg>Example image</a></p>