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

Version Path
redcarpet-1.17.2 bin/redcarpet
redcarpet-1.17.1 bin/redcarpet
redcarpet-1.17.0 bin/redcarpet
redcarpet-1.16.0 bin/redcarpet
redcarpet-1.15.2 bin/redcarpet
redcarpet-1.15.1 bin/redcarpet
redcarpet-1.15.0 bin/redcarpet
redcarpet-1.14.2 bin/redcarpet
redcarpet-1.14.1 bin/redcarpet
redcarpet-1.14.0 bin/redcarpet
redcarpet-1.13.2 bin/redcarpet
redcarpet-1.13.1 bin/redcarpet
redcarpet-1.13.0 bin/redcarpet
redcarpet-1.12.2 bin/redcarpet
redcarpet-1.12.1 bin/redcarpet
redcarpet-1.12.0 bin/redcarpet
redcarpet-1.11.4 bin/redcarpet
redcarpet-1.11.3 bin/redcarpet
redcarpet-1.11.2 bin/redcarpet
redcarpet-1.11.1 bin/redcarpet