<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -62,10 +62,13 @@
       return $post-&gt;code;
     }
     
-    public function format_code($text, $post = null) {
-      if (isset($post)) {
-				$post-&gt;code_unformatted = $post-&gt;code;
+    public function format_code($text, $post = null) {	
+      if(isset($post)) {
 				$code = $text;
+		  	if(preg_match(&quot;/\[gist: ([0-9]+)\]/i&quot;, $code, $matches)) {
+					return '&lt;script src=&quot;http://gist.github.com/'.$matches[1].'.js&quot;&gt;&lt;/script&gt;';
+				}
+				$post-&gt;code_unformatted = $post-&gt;code;
 				$languages = getLanguages();
 				$geshi = new GeSHi($code, $languages[$post-&gt;language]);
 				</diff>
      <filename>code.php</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 name: Code
 url: http://guitsaru.com/
-version: 1
+version: 1.1
 description: Post code snippets with geshi syntax highlighting.
 author:
   name: Matt Pruitt</diff>
      <filename>info.yaml</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,6 @@
 Install:
 Copy the code folder into your feathers directory
 Copy code.twig into your themes feathers directory
-Add the contents of style.css to your themes stylesheets/screen.css file
\ No newline at end of file
+Add the contents of style.css to your themes stylesheets/screen.css file
+
+You can now embed gists using [gist: 2729], replacing 2729 with your gists id.
\ No newline at end of file</diff>
      <filename>readme.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 pre#geshi_code {
-    padding: 7px 2px;
-    overflow: auto;
-    line-height: 11pt;
+  padding: 7px 2px;
+  overflow: auto;
+  line-height: 11pt;
 	border-style: dotted;
 	border-width: 1px;
 	max-height: 300px;</diff>
      <filename>style.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>242e15d061560b7938685c98bd7f241595d39887</id>
    </parent>
  </parents>
  <author>
    <name>Matt Pruitt</name>
    <email>guitsaru@gmail.com</email>
  </author>
  <url>http://github.com/guitsaru/code-feather/commit/53d62650c640becb5570ac417cdddf5bd1dd435f</url>
  <id>53d62650c640becb5570ac417cdddf5bd1dd435f</id>
  <committed-date>2008-07-26T21:48:48-07:00</committed-date>
  <authored-date>2008-07-26T21:48:48-07:00</authored-date>
  <message>Added ability to embed gists using [gist: {gist id}]</message>
  <tree>ff8eaf9bdbd392da81c974d0673feaa442609250</tree>
  <committer>
    <name>Matt Pruitt</name>
    <email>guitsaru@gmail.com</email>
  </committer>
</commit>
