Kramdown::Converter::Html
Convert the Kramdown document doc to HTML using the webgen context object.
# File lib/webgen/contentprocessor/kramdown/html.rb, line 19 def self.convert(doc, context) new(doc, context).convert(doc.tree) end
# File lib/webgen/contentprocessor/kramdown/html.rb, line 23 def convert_a(el, indent, opts) el.options[:attr]['href'] = @context.tag('relocatable', {'path' => el.options[:attr]['href']}) if @do_convert "<a#{html_attributes(el)}>#{inner(el, indent, opts)}</a>" end
Generated with the Darkfish Rdoc Generator 2.