class YARD::APIPlugin::Markup::RedcarpetDelegate

TODO: make this configurable

Constants

Extensions
RendererOptions

Public Class Methods

new(text, extensions_and_options=nil) click to toggle source
# File lib/yard-api/markup/redcarpet.rb, line 22
def initialize(text, extensions_and_options=nil)
  @renderer = Redcarpet::Render::HTML.new(RendererOptions)
  @markdown = Redcarpet::Markdown.new(@renderer, Extensions)
  @text = text
end

Public Instance Methods

to_html() click to toggle source
# File lib/yard-api/markup/redcarpet.rb, line 28
def to_html
  @markdown.render(@text)
end