function Markdown in Markdown 6
Same name and namespace in other branches
- 5 markdown.php \Markdown()
2 calls to Markdown()
- smarty_modifier_markdown in ./
markdown.php - _markdown_process in ./
markdown.module - Filter process callback.
3 string references to 'Markdown'
- markdown.php in ./
markdown.php - markdown_filter in ./
markdown.module - Implementation of hook_filter().
- _markdown_settings in ./
markdown.module - Filter settings callback. Just provides a version overview.
File
- ./
markdown.php, line 59
Code
function Markdown($text) {
#
# Initialize the parser and return the result of its transform method.
#
# Setup static parser variable.
static $parser;
if (!isset($parser)) {
$parser_class = MARKDOWN_PARSER_CLASS;
$parser = new $parser_class();
}
# Transform text using parser.
return $parser
->transform($text);
}