Sha256: 8018bec4ca49e5397456bcb35cc3776730f57db636b55b5e568d3d1d3c5c4e3c
Contents?: true
Size: 827 Bytes
Versions: 3
Compression:
Stored size: 827 Bytes
Contents
markup(:markdown, /md|mkdn?|markdown/) do |content| Markdown.new(content).to_html end markup(:redcloth, /textile/) do |content| RedCloth.new(content).to_html end markup('github/markup/rdoc', /rdoc/) do |content| GitHub::Markup::RDoc.new(content).to_html end command(:rest2html, /rest|rst/) command(:asciidoc2html, /asciidoc/) # pod2html is nice enough to generate a full-on HTML document for us, # so we return the favor by ripping out the good parts. # # Any block passed to `command` will be handed the command's STDOUT for # post processing. command("/usr/bin/env pod2html", /pod/) do |rendered| if rendered =~ /<!-- INDEX BEGIN -->\s*(.+)\s*<!-- INDEX END -->/mi `rm pod2htmd.tmp` if File.exists?('pod2htmd.tmp') rescue nil `rm pod2htmi.tmp` if File.exists?('pod2htmi.tmp') rescue nil $1 end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
github-markup-0.1.1 | lib/github/markups.rb |
github_markup-0.1.1 | lib/github/markups.rb |
github_markup-0.1.0 | lib/github/markups.rb |