PEAR::Text_Wiki
登録されてました。気になる。こんな風に使うみたい
require_once 'Text_Wiki/Text_Wiki.php'; // get the source text $text = implode('', file('Text_Wiki/docs/IndexPage.wiki.txt')); // set the parser config $parse = array('name' => 'Tavi'); // set the filter config $filter = array( 'name' => 'Basic', 'file_path' => 'Text_Wiki/docs/', '_interwiki' => array ( 'MeatBall' => 'http://www.usemod.com/cgi-bin/mb.pl?', 'Advogato' => 'http://www.advogato.org/' ) ); // set the render config $render = array('name' => 'XHTML'); // instantiate a wiki transformer $wiki = new Text_Wiki($parse, $filter, $render); // transform the source text using the configured // parse, filter, and render options $result = $wiki->transform($text); // print the transformed text echo $result;