diff --git a/html.c b/html.c index 7ddc06d..a4bba75 100644 --- a/html.c +++ b/html.c @@ -166,7 +166,7 @@ rndr_blockcode(struct lowdown_buf *ob, const struct rndr_blockcode *parm, const struct html *st) { - if (ob->size && !hbuf_putc(ob, '\n')) + if (!newline(ob)) return 0; if (parm->lang.size) { @@ -220,7 +220,7 @@ rndr_definition(struct lowdown_buf *ob, const struct lowdown_buf *content) { - if (ob->size && !hbuf_putc(ob, '\n')) + if (!newline(ob)) return 0; if (!HBUF_PUTSL(ob, "
Now4
-three ↩
hello
-Hi.1
Another hi.[^pt]
-Hi.1
-Hi.1
-c
-c
diff --git a/regress/header-attr-class.html b/regress/header-attr-class.html index 896cdb4..5f9bcce 100644 --- a/regress/header-attr-class.html +++ b/regress/header-attr-class.html @@ -1,5 +1,4 @@c
-c
diff --git a/regress/header-attr-id-empty.html b/regress/header-attr-id-empty.html index c6cc279..3eac1d2 100644 --- a/regress/header-attr-id-empty.html +++ b/regress/header-attr-id-empty.html @@ -1,5 +1,4 @@c
-c
diff --git a/regress/header-attr-id-zerolen.html b/regress/header-attr-id-zerolen.html index 1f37a95..7bbc1df 100644 --- a/regress/header-attr-id-zerolen.html +++ b/regress/header-attr-id-zerolen.html @@ -1,5 +1,4 @@c
-c
diff --git a/regress/header-attr-id.html b/regress/header-attr-id.html index 8290f65..a76389c 100644 --- a/regress/header-attr-id.html +++ b/regress/header-attr-id.html @@ -1,5 +1,4 @@c
-c
diff --git a/regress/header-attr-id2.html b/regress/header-attr-id2.html index 9b32429..1b75f86 100644 --- a/regress/header-attr-id2.html +++ b/regress/header-attr-id2.html @@ -1,5 +1,4 @@c
-c
diff --git a/regress/header-ids.html b/regress/header-ids.html index 8bdafb1..1baf370 100644 --- a/regress/header-ids.html +++ b/regress/header-ids.html @@ -1,15 +1,8 @@An initial paragraph.
-An outer list.
With a paragraph.
-An inner regular lits.
With inner paragraph.
a
Whoa a new line.
b
c
c
d
sublist
with paragraph
a
-sublist
with paragraph
list
with paragraph
-inner list
inner para
1
-2
-3
-4
-5
diff --git a/regress/shift-heading-level-by-pos.html b/regress/shift-heading-level-by-pos.html index 5638f9e..71fbce1 100644 --- a/regress/shift-heading-level-by-pos.html +++ b/regress/shift-heading-level-by-pos.html @@ -1,14 +1,10 @@1
-2
-3
-4
-5
diff --git a/regress/shift-heading-level-by-zero.html b/regress/shift-heading-level-by-zero.html index 8f0de02..8b3b04f 100644 --- a/regress/shift-heading-level-by-zero.html +++ b/regress/shift-heading-level-by-zero.html @@ -1,14 +1,10 @@1
-2
-3
-4
-5
diff --git a/regress/simple.html b/regress/simple.html index 6718921..a277e75 100644 --- a/regress/simple.html +++ b/regress/simple.html @@ -2,7 +2,6 @@Paragraphs are separated by a blank line.
2nd paragraph. Italic, bold, and monospace
. Itemized lists
look like:
Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex., “it’s all in chapters 12–14”). Three dots … will be converted to an ellipsis. Unicode is supported. ☺
-Here’s a numbered list:
-Note again how the actual text starts at 4 columns in (4 characters from the left side). Here’s a code sample:
-# Let me re-iterate ...
for i in 1 .. 10 { do-something(i) }
As you probably guessed, indented 4 spaces. By the way, instead of indenting the block, you can use delimited blocks, if you like:
-define foobar() {
print "Welcome to flavor country!";
}
(which makes copying & pasting easier). You can optionally mark the delimited block for Pandoc to syntax highlight it:
-import time
# Quick, count to ten!
for i in range(10):
@@ -51,13 +45,10 @@ An h2 header
time.sleep(0.5)
print i
-
Now a nested list:
-First, get these ingredients:
-Boil some water.
Dump everything in the pot and follow this algorithm:
-find wooden spoon
uncover pot
stir
@@ -83,7 +73,6 @@ An h3 header
doc, and to a section heading in the current
doc. Here’s a footnote 1.
Tables can look like this:
-
@@ -113,10 +102,8 @@ An h3 header
Table: Shoes, their sizes, and what they’re made of
(The above is the caption for the table.)
A horizontal rule follows.
-
Here’s a definition list:
-
- apples
-
@@ -137,7 +124,6 @@
An h3 header
And note that you can backslash-escape any punctuation characters
which you wish to be displayed literally, ex.: `foo`, *bar*, etc.
-