Kramdown::Converter::Html
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
# 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
# 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.