Lines Matching refs:tag

1246 					$tag = $token_len == 2 ? "strong" : "em";
1249 $span = "<$tag>$span</$tag>";
1251 $$tag = ''; # $$tag stands for $em or $strong
1260 $tag = strlen($shifted_token) == 2 ? "strong" : "em";
1263 $span = "<$tag>$span</$tag>";
1265 $$tag = ''; # $$tag stands for $em or $strong
2070 $tag = $parts[1]; # Tag to handle.
2072 $tag_re = preg_quote($tag); # For use in a regular expression.
2079 …`{3,})[ ]*(?:\.?[-_:a-zA-Z0-9]+|'.$this->id_class_attr_nocatch_re.')?[ ]*\n?$}', $tag, $capture)) {
2087 $parsed .= $tag . $matches[0];
2092 $parsed .= $tag;
2098 else if ($tag{0} == "\n" || $tag{0} == " ") {
2101 $parsed .= $tag;
2107 else if ($tag{0} == "`") {
2109 $tag_re = preg_quote($tag);
2114 $parsed .= $tag . $matches[0];
2119 $parsed .= $tag;
2127 else if (preg_match('{^<(?:'.$this->block_tags_re.')\b}', $tag) ||
2128 ( preg_match('{^<(?:'.$this->context_block_tags_re.')\b}', $tag) &&
2135 $this->_hashHTMLBlocks_inHTML($tag . $text, "hashBlock", true);
2144 else if (preg_match('{^<(?:'.$this->clean_tags_re.')\b}', $tag) ||
2145 $tag{1} == '!' || $tag{1} == '?')
2150 $this->_hashHTMLBlocks_inHTML($tag . $text, "hashClean", false);
2159 preg_match('{^</?(?:'.$enclosing_tag_re.')\b}', $tag))
2164 if ($tag{1} == '/') $depth--;
2165 else if ($tag{strlen($tag)-2} != '/') $depth++;
2172 $text = $tag . $text;
2176 $parsed .= $tag;
2179 $parsed .= $tag;
2273 $tag = $parts[1]; # Tag to handle.
2280 if (preg_match('{^</?(?:'.$this->auto_close_tags_re.')\b}', $tag) ||
2281 $tag{1} == '!' || $tag{1} == '?')
2284 $block_text .= $tag;
2291 if (preg_match('{^</?'.$base_tag_name_re.'\b}', $tag)) {
2292 if ($tag{1} == '/') $depth--;
2293 else if ($tag{strlen($tag)-2} != '/') $depth++;
2300 preg_match($markdown_attr_re, $tag, $attr_m) &&
2304 $tag = preg_replace($markdown_attr_re, '', $tag);
2309 preg_match('{^<(?:'.$this->contain_span_tags_re.')\b}', $tag);
2320 $block_text .= $tag;
2325 preg_match('/^<([\w:$]*)\b/', $tag, $matches);
2346 else $block_text .= $tag;