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

Version Path
challah-0.9.1.beta.3 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
rdiscount-2.0.7 bin/rdiscount
challah-0.9.1.beta vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-0.9.0 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-rolls-0.2.0 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-0.8.3 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-0.8.1 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-rolls-0.1.0 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-0.8.0.pre vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-0.7.1 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-0.7.0 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-0.7.0.pre2 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-0.7.0.pre vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-0.6.2 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
challah-0.6.1 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rdiscount-1.6.8/bin/rdiscount
challah-0.6.0 vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount