| 
 | 1 | +// Licensed to Elasticsearch B.V under one or more agreements.  | 
 | 2 | +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.  | 
 | 3 | +// See the LICENSE file in the project root for more information  | 
 | 4 | + | 
 | 5 | +module ``container elements``.``vertical definition lists``  | 
 | 6 | + | 
 | 7 | +open Xunit  | 
 | 8 | +open authoring  | 
 | 9 | + | 
 | 10 | +type ``simple multiline definition with markup`` () =  | 
 | 11 | + | 
 | 12 | +    static let markdown = Setup.Markdown """  | 
 | 13 | +This is my `definition`  | 
 | 14 | +:   And this is the definition **body**  | 
 | 15 | +    Which may contain multiple lines  | 
 | 16 | +"""  | 
 | 17 | + | 
 | 18 | +    [<Fact>]  | 
 | 19 | +    let ``validate HTML`` () =  | 
 | 20 | +        markdown |> convertsToHtml """  | 
 | 21 | +             <dl>  | 
 | 22 | +                <dt>This is my <code>definition</code> </dt>  | 
 | 23 | +                <dd>  | 
 | 24 | +                    <p> And this is the definition <strong>body</strong> <br>  | 
 | 25 | +                        Which may contain multiple lines</p>  | 
 | 26 | +                </dd>  | 
 | 27 | +             </dl>  | 
 | 28 | +            """  | 
 | 29 | +    [<Fact>]  | 
 | 30 | +    let ``has no errors`` () = markdown |> hasNoErrors  | 
 | 31 | + | 
 | 32 | +type ``with embedded directives`` () =  | 
 | 33 | + | 
 | 34 | +    static let markdown = Setup.Markdown """  | 
 | 35 | +This is my `definition`  | 
 | 36 | +:   And this is the definition **body**  | 
 | 37 | +    Which may contain multiple lines  | 
 | 38 | +    :::{note}  | 
 | 39 | +    My note  | 
 | 40 | +    :::  | 
 | 41 | +"""  | 
 | 42 | + | 
 | 43 | +    [<Fact>]  | 
 | 44 | +    let ``validate HTML`` () =  | 
 | 45 | +        markdown |> convertsToHtml """  | 
 | 46 | +             <dl>  | 
 | 47 | +                <dt>This is my <code>definition</code> </dt>  | 
 | 48 | +                <dd>  | 
 | 49 | +                    <p> And this is the definition <strong>body</strong> <br>  | 
 | 50 | +                        Which may contain multiple lines</p>  | 
 | 51 | +                        <div class="admonition note">  | 
 | 52 | + 			                <p class="admonition-title">Note</p>  | 
 | 53 | +                        <p>My note</p>  | 
 | 54 | +                    </div>  | 
 | 55 | +                </dd>  | 
 | 56 | +             </dl>  | 
 | 57 | +            """  | 
 | 58 | +    [<Fact>]  | 
 | 59 | +    let ``has no errors`` () = markdown |> hasNoErrors  | 
0 commit comments