Parent

Class/Module Index [+]

Quicksearch

Webgen::ContentProcessor::KramdownHtmlConverter

Public Class Methods

convert(root, options, context) click to toggle source

Convert the element tree under root to HTML using the webgen context object.

# File lib/webgen/contentprocessor/kramdown/html.rb, line 19
def self.convert(root, options, context)
  new(root, options, context).convert(root)
end

Public Instance Methods

convert_a(el, indent) click to toggle source
# File lib/webgen/contentprocessor/kramdown/html.rb, line 23
def convert_a(el, indent)
  el.attr['href'] = @context.tag('relocatable', {'path' => el.attr['href']}) if @do_convert
  "<a#{html_attributes(el.attr)}>#{inner(el, indent)}</a>"
end
convert_img(el, indent) click to toggle source
# File lib/webgen/contentprocessor/kramdown/html.rb, line 28
def convert_img(el, indent)
  el.attr['src'] = @context.tag('relocatable', {'path' => el.attr['src']}) if @do_convert
  "<img#{html_attributes(el.attr)} />"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.