Permalink
Browse files

Fixed the extra space bug.

  • Loading branch information...
kot-behemoth committed Nov 10, 2012
1 parent 9802604 commit 4ac95e04fdee7d7c63d81bd44dd20a3ca48a62f9
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +2 −2 speakerdeck.rb
View
@@ -9,5 +9,5 @@ Usage
-----
1. Install `speakerdeck.rb` to your `plugins` folder.
-2. Put `{% speakerdeck ID%}` in the post/post Markdown file.
+2. Put `{% speakerdeck ID %}` in the post/post Markdown file.
View
@@ -7,10 +7,10 @@ def initialize(name, id, tokens)
end
def render(context)
- %(<script async class="speakerdeck-embed" data-id="#{@id}" src="//speakerdeck.com/assets/embed.js"></script>)
+ %(<script async class="speakerdeck-embed" data-id="#{@id.strip}" src="//speakerdeck.com/assets/embed.js"></script>)
end
end
end
-Liquid::Template.register_tag('speakerdeck', Jekyll::SpeakerDeck)
+Liquid::Template.register_tag('speakerdeck', Jekyll::SpeakerDeck)

0 comments on commit 4ac95e0

Please sign in to comment.