Ingy döt Net > WikiText-0.15 > WikiText

Download:
WikiText-0.15.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.15   Source  

SYNOPSIS ^

    use WikiText::Sample::Parser;
    use WikiText::HTML::Emitter;
    
    my $parser = WikiText::Sample::Parser->new(
        receiver => WikiText::HTML::Emitter->new,
    );
    
    my $wikitext = "== A Title

    This is some text that contains a '''bold phrase''' in it.
    ";
    
    my $html = $parser->parse($wikitext);

DESCRIPTION ^

The WikiText modules parse documents in various formats. A parse has a receiver. The receiver takes the parse events and creates a new form. The new form can be HTML, an AST or another wiki markup.

Some formats are richer than others. The module WikiText::WikiByte defines a bytecode format. The bytecode format is rich enough to be a receiver for any parse, therefore it makes an ideal intermediate format.

syntax highlighting: