Lines Matching full:m
5 $text = preg_replace('/^======\s*(.*?)\s*======\s*$/m', '# $1', $text);
6 $text = preg_replace('/^=====\s*(.*?)\s*=====\s*$/m', '## $1', $text);
7 $text = preg_replace('/^====\s*(.*?)\s*====\s*$/m', '### $1', $text);
8 $text = preg_replace('/^===\s*(.*?)\s*===\s*$/m', '#### $1', $text);
9 $text = preg_replace('/^==\s*(.*?)\s*==\s*$/m', '##### $1', $text);
13 $text = preg_replace_callback('/<code(?:\s+([^>]+))?>(.*?)<\/code>/is', function($m) {
14 $lang = isset($m[1]) ? trim($m[1]) : '';
15 return "```" . $lang . "\n" . trim($m[2]) . "\n```";
18 $text = preg_replace_callback('/\[\[([^\]|]+)\|([^\]]+)\]\]/', function($m) {
19 return '[' . $m[2] . '](' . $this->pageIdToMd($m[1]) . ')';
21 $text = preg_replace_callback('/\[\[([^\]]+)\]\]/', function($m) {
22 return '[' . $m[1] . '](' . $this->pageIdToMd($m[1]) . ')';
24 $text = preg_replace_callback('/\{\{([^\}|]+)(?:\|([^\}]+))?\}\}/', function($m) {
25 $alt = isset($m[2]) ? trim($m[2]) : '';
26 return ') . ')';
32 if (preg_match('/<frontmatter>(.*?)<\/frontmatter>/is', $text, $m)) return trim($m[1]);
33 if (preg_match('/<skillmeta>(.*?)<\/skillmeta>/is', $text, $m)) return trim($m[1]);
34 if (preg_match('/^---\s*\R(.*?)\R---\s*\R/s', $text, $m)) return trim($m[1]);