From 689f6cb79b7436f387720213cb6a9810649762b6 Mon Sep 17 00:00:00 2001
From: Russ Ross Hello Goodbye List List List List List List List List List Nested list Hello Goodbye List List List List Yin Yang Yin Yang Ting Bong Goo Ting Bong Goo Yin Yang Yin Yang Ting Bong Goo Ting Bong Goo Yin Yang Yin Yang Ting Bong Goo Ting Bong Goo *Hello Yin Yang Yin Yang Ting Bong Goo Ting Bong Goo 1 Hello Blockquoted: http://example.com/ Auto-links should not occur here: foo bar foo asterisk 1 asterisk 2 asterisk 3 Plus 1 Plus 2 Plus 3 Minus 1 Minus 2 Minus 3 First Second Third One Two Three Item 2. graf two. The quick brown fox jumped over the lazy dog's
back. Item 2. Item 3.Header 1
\n\n\n
\n",
+ "Header
\n
\n",
"* List\n#Header\n* List\n",
- "Header
\n
\n",
+ "Header
\n
\n",
"* List\n * Nested list\n # Nested header\n",
"Header
\n
\n
Header 1
\n\n\n
\n",
+ "Header
\n
\n",
"* List\n#Header\n* List\n",
"Header
\n
\n",
@@ -285,10 +285,10 @@ func TestUnorderedList(t *testing.T) {
"\n
\n",
"* Yin\n\n* Yang\n",
- "\n
\n",
+ "\n
\n",
"* Ting\n\n* Bong\n* Goo\n",
- "\n
\n",
+ "\n
\n",
"+ Hello\n",
"\n
\n",
@@ -300,10 +300,10 @@ func TestUnorderedList(t *testing.T) {
"\n
\n",
"+ Yin\n\n+ Yang\n",
- "\n
\n",
+ "\n
\n",
"+ Ting\n\n+ Bong\n+ Goo\n",
- "\n
\n",
+ "\n
\n",
"- Hello\n",
"\n
\n",
@@ -315,10 +315,10 @@ func TestUnorderedList(t *testing.T) {
"\n
\n",
"- Yin\n\n- Yang\n",
- "\n
\n",
+ "\n
\n",
"- Ting\n\n- Bong\n- Goo\n",
- "\n
\n",
+ "\n
\n",
"*Hello\n",
"\n
\n",
"1. Yin\n\n2. Yang\n",
- "\n
\n",
+ "\n
\n",
"1. Ting\n\n2. Bong\n3. Goo\n",
- "\n
\n",
+ "\n
\n",
"1 Hello\n",
"\n")
out.Write(text)
- out.WriteString("
")
+ out.WriteString("\n")
}
func (options *Html) Table(out *bytes.Buffer, header []byte, body []byte, columnData []int) {
@@ -263,7 +264,7 @@ func (options *Html) Table(out *bytes.Buffer, header []byte, body []byte, column
out.Write(header)
out.WriteString("\n\n\n")
out.Write(body)
- out.WriteString("\n\n")
+ out.WriteString("\n\n\n")
}
func (options *Html) TableRow(out *bytes.Buffer, text []byte) {
@@ -295,9 +296,9 @@ func (options *Html) List(out *bytes.Buffer, text func() bool, flags int) {
doubleSpace(out)
if flags&LIST_TYPE_ORDERED != 0 {
- out.WriteString("\n")
+ out.WriteString("
")
} else {
- out.WriteString("
\n")
+ out.WriteString("
")
}
if !text() {
out.Truncate(marker)
@@ -311,6 +312,9 @@ func (options *Html) List(out *bytes.Buffer, text func() bool, flags int) {
}
func (options *Html) ListItem(out *bytes.Buffer, text []byte, flags int) {
+ if flags&LIST_ITEM_CONTAINS_BLOCK != 0 || flags&LIST_ITEM_BEGINNING_OF_LIST != 0 {
+ doubleSpace(out)
+ }
out.WriteString("
+
+
<http://example.com/>
-
\ No newline at end of file
+
diff --git a/upskirtref/Nested blockquotes.html b/upskirtref/Nested blockquotes.html
index f1b017e..538bb4f 100644
--- a/upskirtref/Nested blockquotes.html
+++ b/upskirtref/Nested blockquotes.html
@@ -1,7 +1,9 @@
or here: <http://example.com/>
diff --git a/upskirtref/Blockquotes with code blocks.html b/upskirtref/Blockquotes with code blocks.html
index fa64335..360fa9b 100644
--- a/upskirtref/Blockquotes with code blocks.html
+++ b/upskirtref/Blockquotes with code blocks.html
@@ -12,4 +12,4 @@
return "working";
}
\ No newline at end of file
+
diff --git a/upskirtref/Ordered and unordered lists.html b/upskirtref/Ordered and unordered lists.html
index e3219f2..d6fa427 100644
--- a/upskirtref/Ordered and unordered lists.html
+++ b/upskirtref/Ordered and unordered lists.html
@@ -12,7 +12,9 @@
+
@@ -30,7 +32,9 @@
@@ -48,7 +52,9 @@
@@ -74,7 +80,9 @@
@@ -82,7 +90,9 @@
@@ -93,7 +103,9 @@
First
Second:
Third
this is a list item indented with tabs
this is a list item indented with spaces