::Kramdown::Converter::Html
Convert the Kramdown document doc to HTML using the webgen context object.
# File lib/webgen/contentprocessor/kramdown/html.rb, line 20
20: def self.convert(doc, context)
21: new(doc, context).convert(doc.tree)
22: end
# File lib/webgen/contentprocessor/kramdown/html.rb, line 24
24: def convert_a(el, indent, opts)
25: el.options[:attr]['href'] = @context.tag('relocatable', {'path' => el.options[:attr]['href']}) if @do_convert
26: "<a#{html_attributes(el)}>#{inner(el, indent, opts)}</a>"
27: end
# File lib/webgen/contentprocessor/kramdown/html.rb, line 29
29: def convert_img(el, indent, opts)
30: el.options[:attr]['src'] = @context.tag('relocatable', {'path' => el.options[:attr]['src']}) if @do_convert
31: "<img#{html_attributes(el)} />"
32: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.