Sha256: bc6ed399fd79559da7e5d6ff663c6f095492a1a0a9847fde68a4161d3ecb47a8
Contents?: true
Size: 559 Bytes
Versions: 3
Compression:
Stored size: 559 Bytes
Contents
require 'rdoc/generators/html_generator' require 'ostruct' module GitHub module Markup class RDoc def initialize(content) @content = content end def to_html simple_markup = SM::SimpleMarkup.new generator = Generators::HyperlinkHtml.new('', OpenStruct.new) simple_markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+\w)/, :HYPERLINK) simple_markup.add_special(/(((\{.*?\})|\b\S+?)\[\S+?\.\S+?\])/, :TIDYLINK) simple_markup.convert(@content, generator) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github-markup-0.5.3 | lib/github/markup/rdoc.rb |
github-markup-0.5.2 | lib/github/markup/rdoc.rb |
github-markup-0.5.1 | lib/github/markup/rdoc.rb |