Skip to content

Commit 7bc3ec1

Browse files
committed
Use official Sassmeister embed code
1 parent 631ecba commit 7bc3ec1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Adapters/Sassmeister.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace Embed\Adapters;
77

88
use Embed\Request;
9-
use Embed\Utils;
109

1110
class Sassmeister extends Webpage implements AdapterInterface
1211
{
@@ -27,6 +26,9 @@ public function getCode()
2726
{
2827
$id = $this->request->getDirectoryPosition(1);
2928

30-
return Utils::iframe('http://embed.sassmeister.com/gist/' . $id);
29+
return "<p class=\"sassmeister\" data-gist-id=\"{$id}\" data-height=\"480\" data-theme=\"tomorrow\">" .
30+
"<a href=\"http://sassmeister.com/gist/{$id}\">Play with this gist on SassMeister.</a>" .
31+
"</p>" .
32+
"<script src=\"http://cdn.sassmeister.com/js/embed.js\" async></script>";
3133
}
3234
}

0 commit comments

Comments
 (0)