diff --git a/blorg/testdata/public/about.html b/blorg/testdata/public/about.html index 22918e8..9cdf912 100644 --- a/blorg/testdata/public/about.html +++ b/blorg/testdata/public/about.html @@ -24,13 +24,10 @@ -

-About -

+

About

-and some content -

+and some content

diff --git a/blorg/testdata/public/post.html b/blorg/testdata/public/post.html index c800cc4..470962e 100644 --- a/blorg/testdata/public/post.html +++ b/blorg/testdata/public/post.html @@ -24,9 +24,7 @@ -

-some post -

+

some post

diff --git a/org/html_writer.go b/org/html_writer.go index 3a5f97a..bfc002a 100644 --- a/org/html_writer.go +++ b/org/html_writer.go @@ -411,11 +411,8 @@ func (w *HTMLWriter) WriteParagraph(p Paragraph) { return } w.WriteString("

") - if _, ok := p.Children[0].(LineBreak); !ok { - w.WriteString("\n") - } WriteNodes(w, p.Children...) - w.WriteString("\n

\n") + w.WriteString("

\n") } func (w *HTMLWriter) WriteExample(e Example) { diff --git a/org/testdata/blocks.html b/org/testdata/blocks.html index 642dc6d..cf1db87 100644 --- a/org/testdata/blocks.html +++ b/org/testdata/blocks.html @@ -61,27 +61,18 @@ are also supported note that /inline/ *markup* ignored
+

Mongodb is webscale. (source: mongodb-is-web-scale)

-Mongodb is webscale. (source: mongodb-is-web-scale) -

-

-blocks like the quote block parse their content and can contain -

+blocks like the quote block parse their content and can contain

@@ -135,31 +121,21 @@ console.log("Hello World!") -

-this unindented line is outside of the list item -

+

this unindented line is outside of the list item