mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-28 03:01:03 -04:00
Strip space from the gist number, add test for gist tag
This commit is contained in:
@@ -7,11 +7,11 @@ module Jekyll
|
||||
class GistTag < Liquid::Tag
|
||||
def initialize(tag_name, gist, tokens)
|
||||
super
|
||||
@gist = gist
|
||||
@gist = gist.strip
|
||||
end
|
||||
|
||||
def render(context)
|
||||
"<script src=\"http://gist.github.com/#{@gist}.js\" type=\"text/javascript\"></script>"
|
||||
"<script src=\"http://gist.github.com/#{@gist}.js\" type=\"text/javascript\"> </script>"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user