From c4f6e6cb57e4fdda9ad59ff7220988810583ec60 Mon Sep 17 00:00:00 2001
From: John MacFarlane foo bar foo bar This is a footnote.1 And this is a link. A note inside a block quote.2 A second paragraph. A note inside a block quote.2 A second paragraph. Some more text. This is a footnote.1 And this is a link. Down here.↩︎ A note inside a block quote.2 A second paragraph. The second note.↩︎ Down here.↩︎ A note inside a block quote.2 A second paragraph. The second note.↩︎ Some more text. This is a footnote.1 And this is a link. A note inside a block quote.2 A second paragraph. A note inside a block quote.2 A second paragraph. Some more text. This is a footnote.1 And this is a link. A note inside a block quote.2 A second paragraph. This is a footnote.1 And this is a link. A note inside a block quote.2 A second paragraph. Some more text. Some more text.
"
+ =?> "\n\n
"
, "heading with disallowed attributes" =:
headerWith ("", [], [("invalid","1"), ("lang", "en")]) 1 "test"
=?>
@@ -108,37 +109,66 @@ tests =
[ test (htmlWithOpts def{writerReferenceLocation=EndOfDocument})
"at the end of a document" $
noteTestDoc =?>
- concat
+ T.unlines
[ "Page title
"
, "First section
"
, "
"
+ , ""
+ , "
"
, "Second section
"
, "Page title
"
, "First section
"
, "
"
- , ""
+ , "
"
+ , ""
+ , "
"
+ , ""
+ , "
"
+ , "Second section
"
, "Page title
"
, "First section
"
, "
"
- , ""
+ , ""
+ , "
"
+ , ""
, "Second section
"
, "Page title
"
, "First section
"
- , "
"
+ , ""
+ , "
"
+ , "Second section
"
+ , "Second section
This is the citation. It's just like a footnote, except the label -is textual.
+This is the citation. It's just like a footnote, except the label is +textual.
Tight using spaces:
Tight using tabs:
Loose:
red fruit
+red fruit
orange fruit
+orange fruit
yellow fruit
+yellow fruit
Multiple blocks with italics:
red fruit
+red fruit
contains seeds, crisp, pleasant to taste
orange fruit
+orange fruit
{ orange code block }
orange block quote
@@ -426,38 +437,49 @@ back.Multiple definitions, tight:
- apple
-- red fruit +
- +red fruit
-- computer +
- +computer
- orange
-- orange fruit +
- +orange fruit
-- bank +
- +bank
Multiple definitions, loose:
- apple
-red fruit
+- +
-red fruit
computer
+- +
computer
- orange
-orange fruit
+- +
-orange fruit
bank
+- +
bank
Blank line after term, indented marker, alternate markers:
- apple
-red fruit
+- +
-red fruit
computer
+- +
computer
- orange
-orange fruit
+- +
orange fruit
- sublist
- sublist
diff --git a/test/writer.html5 b/test/writer.html5 index cdfcf042f..d8e89b3e2 100644 --- a/test/writer.html5 +++ b/test/writer.html5 @@ -379,47 +379,58 @@ back.Tight using spaces:
- apple
-- red fruit +
- +red fruit
- orange
-- orange fruit +
- +orange fruit
- banana
-- yellow fruit +
- +yellow fruit
Tight using tabs:
- apple
-- red fruit +
- +red fruit
- orange
-- orange fruit +
- +orange fruit
- banana
-- yellow fruit +
- +yellow fruit
Loose:
- apple
-red fruit
+- +
red fruit
- orange
-orange fruit
+- +
orange fruit
- banana
-yellow fruit
+- +
yellow fruit
Multiple blocks with italics:
- apple
-red fruit
+- +
red fruit
contains seeds, crisp, pleasant to taste
- orange
-orange fruit
+- +
orange fruit
{ orange code block }
orange block quote
@@ -429,38 +440,49 @@ back.Multiple definitions, tight:
- apple
-- red fruit +
- +red fruit
-- computer +
- +computer
- orange
-- orange fruit +
- +orange fruit
-- bank +
- +bank
Multiple definitions, loose:
- apple
-red fruit
+- +
-red fruit
computer
+- +
computer
- orange
-orange fruit
+- +
-orange fruit
bank
+- +
bank
Blank line after term, indented marker, alternate markers:
- apple
-red fruit
+- +
-red fruit
computer
+- +
computer
- orange
-orange fruit
+- +
orange fruit
- sublist
- sublist
-- cgit v1.2.3