Sha256: 0da10f2a3b5868ae612cbcd68ab1c5c4bffc0fa46869948e62c39d4879f43c93
Contents?: true
Size: 409 Bytes
Versions: 45
Compression:
Stored size: 409 Bytes
Contents
#!/usr/bin/env ruby # Usage: redcarpet [<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 'redcarpet' STDOUT.write(Redcarpet.new(ARGF.read).to_html)
Version data entries
45 entries across 45 versions & 1 rubygems