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
rdiscountwl-1.0.0.1 bin/rdiscount
rdiscount-2.2.0.2 bin/rdiscount
rdiscount-2.2.0.1 bin/rdiscount
rdiscount-2.2.0 bin/rdiscount
rdiscount-2.1.8 bin/rdiscount
rdiscount_wm-3.1.0.0 bin/rdiscount
rdiscount_wm-3.0.0.0 bin/rdiscount
rdiscount-2.1.7.1 bin/rdiscount
rdiscount-2.1.7 bin/rdiscount
challah-1.0.0 vendor/bundle/gems/rdiscount-2.1.6/bin/rdiscount
rdiscount-2.1.6 bin/rdiscount
challah-1.0.0.beta3 vendor/bundle/gems/rdiscount-2.0.7.3/bin/rdiscount
challah-1.0.0.beta3 vendor/bundle/gems/rdiscount-2.0.7.2/bin/rdiscount
rdiscount-2.0.7.3 bin/rdiscount
challah-1.0.0.beta2 vendor/bundle/gems/rdiscount-2.0.7.2/bin/rdiscount
challah-1.0.0.beta vendor/bundle/gems/rdiscount-2.0.7.1/bin/rdiscount
challah-1.0.0.beta vendor/bundle/gems/rdiscount-2.0.7.2/bin/rdiscount
challah-1.0.0.beta vendor/bundle/gems/rdiscount-1.6.8/bin/rdiscount
rdiscount-2.0.7.2 bin/rdiscount
rdiscount-2.0.7.1 bin/rdiscount