/usr/bin/redcarpet is in ruby-redcarpet 2.1.1-3.
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 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/usr/bin/env ruby
# Usage: redcarpet [--parse-<extension>...] [--render-<extension>...] [--smarty] [<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.
# With <extension>s, perform additional Markdown processing before writing output.
# With --smarty, use the SmartyHTML renderer
if ARGV.include?('--help')
  File.read(__FILE__).split("\n").grep(/^# /).each do |line|
    puts line[2..-1]
  end
  exit 0
end
root = File.expand_path('../../', __FILE__)
$:.unshift File.expand_path('lib', root)
require 'redcarpet'
render_extensions = {}
parse_extensions = {}
renderer = Redcarpet::Render::HTML
ARGV.delete_if do |arg|
  if arg =~ /^--render-([\w-]+)$/
    arg = $1.gsub('-', '_')
    render_extensions[arg.to_sym] = true
  elsif arg =~ /^--parse-([\w-]+)$/
    arg = $1.gsub('-', '_')
    parse_extensions[arg.to_sym] = true
  elsif arg == '--smarty'
    renderer = Redcarpet::Render::SmartyHTML
  else
    false
  end
end
render = renderer.new(render_extensions)
STDOUT.write(Redcarpet::Markdown.new(render, parse_extensions).render(ARGF.read))
 |