mirror of
https://github.com/discourse/discourse.git
synced 2025-04-27 22:24:36 +08:00
DEV: Improve PrettyText
spec to test for markdown image title attr.
This commit is contained in:
parent
1cf3bf016c
commit
799bd62803
@ -1224,7 +1224,7 @@ HTML
|
|||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
MD
|
MD
|
||||||
|
|
||||||
html = <<~HTML
|
html = <<~HTML
|
||||||
@ -1232,7 +1232,7 @@ HTML
|
|||||||
<img src="http://png.com/my.png" alt><br>
|
<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 width="220" height="100"><br>
|
||||||
<img src="http://png.com/my.png" alt="stuff"><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
|
HTML
|
||||||
|
|
||||||
expect(cooked).to eq(html.strip)
|
expect(cooked).to eq(html.strip)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user