diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-12 20:38:04 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-12 20:38:04 -0400 |
commit | 8336854c3f5fce52980796b2f5f0a8e35f20224c (patch) | |
tree | 4f96be47a71ad3f94c1bb50659aacd69db986408 | |
parent | b95b21e69fd552f45fff165a1593d5f4e3b92468 (diff) |
run the page title on the index through the markdown processor
-rwxr-xr-x | index.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ license_url = 'https://creativecommons.org/licenses/by-sa/3.0/' @content = "<h1>#{@title}</h1>\n<ul>\n" for filename in ARGV do - title = File.read(filename).split("\n",2).first; + title = RDiscount.new(File.read(filename).split("\n",2).first).to_html; url=filename.sub(/^public\//,'./').sub(/\.md$/,''); @content += "<li><tt><a href='#{url}.html'>#{url}</a></tt> — #{title}</a></li>\n" end |