Module MediaCloth
In: lib/mediacloth.rb

Helper module to facilitate MediaCloth usage.

Methods

Public Instance methods

Parses wiki formatted input and generates its html representation.

[Source]

    # File lib/mediacloth.rb, line 12
12:     def wiki_to_html(input)
13:         parser = MediaWikiParser.new
14:         parser.lexer = MediaWikiLexer.new
15:         ast = parser.parse(input)
16:         walker = MediaWikiHTMLGenerator.new
17:         walker.parse(ast)
18:         walker.html
19:     end

[Validate]