Skip to content

Commit

Permalink
merged the creating embed link function and the creating direct link …
Browse files Browse the repository at this point in the history
…function in the method `make_gist_link`.
  • Loading branch information
ashbb committed Feb 27, 2009
1 parent 8b4f935 commit 1d49de2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tools/mkmd.rb
Expand Up @@ -40,17 +40,11 @@ def make_page_link name
"[#{fname[6..-4]}](#{PATH + '/md/' + fname})"
end

=begin
def make_gist_link name
"**gist: #{name}**" << "\n" * 2 << \
'<http://gist.github.com/' << name << '>' << "\n" * 2 << \
'<script src="http://gist.github.com/' << name << '.js"></script>'
end
=end

def make_gist_link name
"**gist: #{name}**" << "\n" * 2 << \
'<http://gist.github.com/' << name << '>'
end

Dir.glob("../md/*.md").each do |file|
lines = IO.readlines(file)
Expand Down

0 comments on commit 1d49de2

Please sign in to comment.