The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Text::WikiFormat::SAX - a SAX parser for Wiki text

SYNOPSIS

  use Text::WikiFormat::SAX;
  use XML::SAX::Writer;
  
  my $output = '';
  
  my $parser = Text::WikiFormat::SAX->new(
       Handler => XML::SAX::Writer->new(
         Output => \$output
       )
     );
  $parser->parse_string($wiki_text);
  print $output;

DESCRIPTION

This module implements a SAX parser for WikiWiki text. The code is based on Text::WikiFormat, and so only supports the formatting that module supports.