File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
tests/Elastic.Markdown.Tests/Inline Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,13 @@ If `H` is omitted `W` is used as the height as well.
9696
9797```
9898
99+ The sizing syntax is flexible and works with or without spaces before the ` = ` sign. You can also combine it with a title:
100+
101+ ``` markdown
102+ 
103+ 
104+ ```
105+
99106
100107
101108### SVG
Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ public void GeneratesAttributesInHtml() =>
7676 ) ;
7777}
7878
79- // Test image sizing with space after =
80- public class InlineImageWithSizingSpaceAfterTest ( ITestOutputHelper output ) : InlineTest < LinkInline > ( output ,
79+ // Test image sizing with title but no space before =
80+ public class InlineImageWithTitleNoSpaceBeforeTest ( ITestOutputHelper output ) : InlineTest < LinkInline > ( output ,
8181"""
82- 
82+ 
8383"""
8484)
8585{
@@ -90,7 +90,7 @@ public class InlineImageWithSizingSpaceAfterTest(ITestOutputHelper output) : Inl
9090 public void GeneratesAttributesInHtml ( ) =>
9191 // language=html
9292 Html . ShouldContainHtml (
93- """<p><img src="/docs/_static/img/observability.png" alt="Elasticsearch" width="50%" height="50%" /></p>"""
93+ """<p><img src="/docs/_static/img/observability.png" alt="Elasticsearch" title="My Title" width="50%" height="50%" /></p>"""
9494 ) ;
9595}
9696
You can’t perform that action at this time.
0 commit comments