/usr/bin/rdiscount is in ruby-rdiscount 2.1.7.1-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/usr/bin/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)
|