Empty lines now output br tag instead of p tag
This commit is contained in:
parent
b23bf09ebf
commit
eb051f5d17
|
@ -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 ()
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue