DEV: Improve `PrettyText` spec to test for markdown image title attr.

This commit is contained in:
Guo Xiang Tan 2019-06-10 11:00:23 +08:00
parent 1cf3bf016c
commit 799bd62803
1 changed files with 2 additions and 2 deletions

View File

@ -1224,7 +1224,7 @@ HTML
![](http://png.com/my.png)
![|220x100](http://png.com/my.png)
![stuff](http://png.com/my.png)
![|220x100,50%](http://png.com/my.png)
![|220x100,50%](http://png.com/my.png "some title")
MD
html = <<~HTML
@ -1232,7 +1232,7 @@ HTML
<img src="http://png.com/my.png" alt><br>
<img src="http://png.com/my.png" alt width="220" height="100"><br>
<img src="http://png.com/my.png" alt="stuff"><br>
<img src="http://png.com/my.png" alt width="110" height="50"></p>
<img src="http://png.com/my.png" alt title="some title" width="110" height="50"></p>
HTML
expect(cooked).to eq(html.strip)