mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:31:10 +08:00
Allow whitespace around % scaler in markdown image syntax (#5000)
This commit is contained in:
@ -970,6 +970,21 @@ HTML
|
||||
|
||||
expect(cooked).to eq(html.strip)
|
||||
end
|
||||
|
||||
it "allows whitespace before the percent scaler" do
|
||||
cooked = PrettyText.cook <<~MD
|
||||

|
||||

|
||||

|
||||
MD
|
||||
|
||||
html = <<~HTML
|
||||
<p><img src="http://png.com/my.png" alt width="110" height="50">
|
||||
<img src="http://png.com/my.png" alt width="110" height="50">
|
||||
<img src="http://png.com/my.png" alt width="110" height="50"></p>
|
||||
HTML
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
describe "inline onebox" do
|
||||
|
Reference in New Issue
Block a user