<?php namespace Lio\Github;

class GistEmbedFormatter
{
    protected $pattern = '/(https:\/\/gist.github.com\/\w+\/\w+)/';

    public function format($html)
    {
        return preg_replace($this->pattern, '<a href="$0">$0</a><script src="$0.js"></script>', $html);
    }
}

<?php namespace Lio\Github;

class GistEmbedFormatter
{
    protected $pattern = '/(https:\/\/gist.github.com\/\w+\/\w+)/';

    public function format($html)
    {
        return preg_replace($this->pattern, '<script src="$0.js"></script>', $html);
    }
}

Remove URL from Gist embeds
Remove URL from Gist embeds

Reverts the commit from 30f1aa3 and removes the Github Gist URL from
appearing above the embedded gist.

The URLs are redundant as one could click the filename of the gist and
be taken to its page if they want.
