summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-10-12 20:38:04 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-10-12 20:38:04 -0400
commit8336854c3f5fce52980796b2f5f0a8e35f20224c (patch)
tree4f96be47a71ad3f94c1bb50659aacd69db986408
parentb95b21e69fd552f45fff165a1593d5f4e3b92468 (diff)
run the page title on the index through the markdown processor
-rwxr-xr-xindex.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.rb b/index.rb
index 60b041a..4c836f2 100755
--- a/index.rb
+++ b/index.rb
@@ -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