search for: smartypants_parser

Displaying 1 result from an estimated 1 matches for "smartypants_parser".

2006 May 19
1
Object-Oriented PHP Markdown/SmartyPants
...both the Markdown_Parser and the MarkdownExtra_Parser classes. Hence, by calling directly the parser, you can filter text using both syntaxes. For SmartyPants, attributes are (optionally) specified while constructing the parser and not while calling the transform method: $parser = new SmartyPants_Parser('q'); $html = $parser->transform($html); This is equivalent: $html = SmartyPants($html, 'q'); I'll release an object-oriented beta for PHP Markdown 1.0.2 later, probably when John comes out with a new beta; the same for SmartyPants. Michel Fortin michel.forti...