public function _HamlMarkdownFilter::run in Sassy 7
* Run the filter *
Parameters
string text to filter: * @return string filtered text
Overrides HamlBaseFilter::run
File
- phamlp/
haml/ filters/ _HamlMarkdownFilter.php, line 47
Class
- _HamlMarkdownFilter
- Markdown Filter for {@link http://haml-lang.com/ Haml} class. Parses the text with Markdown.
Code
public function run($text) {
return '<?php ' . (!empty($this->vendorPath) ? 'require_once "' . $this->vendorPath . '";' : '') . '$markdown___=new ' . $this->vendorClass . '();echo $markdown___->safeTransform("' . preg_replace(HamlParser::MATCH_INTERPOLATION, '".\\1."', $text) . '");?>';
}