Skip to content

Commit 701576f

Browse files
committed
Add test to ensure this fixes #405 too
1 parent df0e455 commit 701576f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

tests/authoring/Container/DefinitionLists.fs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,34 @@ This is my `definition`
5757
"""
5858
[<Fact>]
5959
let ``has no errors 2`` () = markdown |> hasNoErrors
60+
61+
62+
63+
type ``preserves paragraphs`` () =
64+
65+
static let markdown = Setup.Markdown """
66+
Elastic Consumption Unit (ECU)
67+
: An ECU is a unit of aggregate consumption across multiple resources over time.
68+
69+
Each type of computing resource (capacity, data transfer, and snapshot) that you consume has its own unit of measure.
70+
71+
In order to aggregate consumption across different resource types, all resources are priced in ECU.
72+
73+
Check Using Elastic Consumption Units for billing for more details.
74+
"""
75+
76+
[<Fact>]
77+
let ``validate HTML 2`` () =
78+
markdown |> convertsToHtml """
79+
<dl>
80+
<dt>Elastic Consumption Unit (ECU)</dt>
81+
<dd>
82+
<p>An ECU is a unit of aggregate consumption across multiple resources over time.</p>
83+
<p>Each type of computing resource (capacity, data transfer, and snapshot) that you consume has its own unit of measure.</p>
84+
<p>In order to aggregate consumption across different resource types, all resources are priced in ECU.</p>
85+
<p>Check Using Elastic Consumption Units for billing for more details.</p>
86+
</dd>
87+
</dl>
88+
"""
89+
[<Fact>]
90+
let ``has no errors`` () = markdown |> hasNoErrors

0 commit comments

Comments
 (0)