@@ -15,7 +15,7 @@ type ``static path to image`` () =
15
15
[<Fact>]
16
16
let ``validate HTML : generates link and alt attr`` () =
17
17
markdown |> convertsToHtml """
18
- <p><img src="/_static/img/observability.png" alt="Elasticsearch" /></p>
18
+ <p><img src="/_static/img/observability.png" alt="Elasticsearch" title="Elasticsearch" /></p>
19
19
"""
20
20
21
21
type ``relative path to image`` () =
@@ -26,7 +26,7 @@ type ``relative path to image`` () =
26
26
[<Fact>]
27
27
let ``validate HTML : preserves relative path`` () =
28
28
markdown |> convertsToHtml """
29
- <p><img src="/_static/img/observability.png" alt="Elasticsearch" /></p>
29
+ <p><img src="/_static/img/observability.png" alt="Elasticsearch" title="Elasticsearch" /></p>
30
30
"""
31
31
32
32
type ``supplying a tittle`` () =
@@ -37,7 +37,7 @@ type ``supplying a tittle`` () =
37
37
[<Fact>]
38
38
let ``validate HTML : includes title`` () =
39
39
markdown |> convertsToHtml """
40
- <p><img src="/_static/img/observability.png" alt="Elasticsearch" title="Hello world " /></p>
40
+ <p><img src="/_static/img/observability.png" alt="Elasticsearch" title="Elasticsearch " /></p>
41
41
"""
42
42
43
43
type ``supplying a tittle with width and height`` () =
@@ -48,7 +48,7 @@ type ``supplying a tittle with width and height`` () =
48
48
[<Fact>]
49
49
let ``validate HTML : does not include width and height in title`` () =
50
50
markdown |> convertsToHtml """
51
- <p><img src="/obs.png" width="250px" height="400px" alt="o" title="Title "/></p>
51
+ <p><img src="/obs.png" width="250px" height="400px" alt="o" title="o "/></p>
52
52
"""
53
53
54
54
type ``supplying a tittle with width and height in percentage`` () =
@@ -59,7 +59,7 @@ type ``supplying a tittle with width and height in percentage`` () =
59
59
[<Fact>]
60
60
let ``validate HTML : does not include width and height in title`` () =
61
61
markdown |> convertsToHtml """
62
- <p><img src="/obs.png" width="50%" height="40%" alt="o" title="Title "/></p>
62
+ <p><img src="/obs.png" width="50%" height="40%" alt="o" title="o "/></p>
63
63
"""
64
64
type ``supplying a tittle with width only`` () =
65
65
static let markdown = Setup.Markdown """
@@ -69,5 +69,5 @@ type ``supplying a tittle with width only`` () =
69
69
[<Fact>]
70
70
let ``validate HTML : sets height to width if not supplied`` () =
71
71
markdown |> convertsToHtml """
72
- <p><img src="/obs.png" width="30%" height="30%" alt="o" title="Title "/></p>
72
+ <p><img src="/obs.png" width="30%" height="30%" alt="o" title="o "/></p>
73
73
"""
0 commit comments