mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
BUGFIX: inline spoiler for text, block spoiler for images
This commit is contained in:
@ -30,7 +30,7 @@ test('code', function() {
|
||||
});
|
||||
|
||||
test('spoiler', function() {
|
||||
format("[spoiler]it's a sled[/spoiler]", "<div class=\"spoiler\">it's a sled</div>", "supports spoiler tags on text");
|
||||
format("[spoiler]it's a sled[/spoiler]", "<span class=\"spoiler\">it's a sled</span>", "supports spoiler tags on text");
|
||||
format("[spoiler]<img src='http://eviltrout.com/eviltrout.png' width='50' height='50'>[/spoiler]", "<div class=\"spoiler\"><img src='http://eviltrout.com/eviltrout.png' width='50' height='50'></div>", "supports spoiler tags on images");
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user