Sha256: 2e8d9c354b055c4dcd94d691ecca988c1d4a0ecbf832ce518446a13995fa62ce
Contents?: true
Size: 409 Bytes
Versions: 61
Compression:
Stored size: 409 Bytes
Contents
#!/usr/bin/env ruby # Usage: rdiscount [<file>...] # Convert one or more Markdown files to HTML and write to standard output. With # no <file> or when <file> is '-', read Markdown source text from standard input. if ARGV.include?('--help') File.read(__FILE__).split("\n").grep(/^# /).each do |line| puts line[2..-1] end exit 0 end require 'rdiscount' STDOUT.write(RDiscount.new(ARGF.read).to_html)
Version data entries
61 entries across 55 versions & 7 rubygems