#!/usr/bin/ruby require 'yaml' require 'date' def usage puts <])/) { "\\#{$1}" } puts "## #{cword}" puts if word_info['help'] word_info['help'].each_with_index do |line, i| if line.start_with?('(') line.gsub!(/[(](.+?)[)]/, '_(\1)_') # emphasize stack effects else if line =~ /^\s*\S+:/ # space for separating interpretation/compilation/etc. puts if i > 0 end line.gsub!(/:\s+[(](.+?)[)]/, ': _(\1)_') # emphasize stack effects end puts line end puts end end