Parent

Class Index [+]

Quicksearch

Webgen::ContentProcessor::KramdownHtmlConverter

Public Class Methods

convert(doc, context) click to toggle source

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

Public Instance Methods

convert_a(el, indent, opts) click to toggle source
    # 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
convert_img(el, indent, opts) click to toggle source
    # 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.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.