Skip to content
Permalink
Browse files

Parser v1.0.5

파일 문법 개선
  • Loading branch information...
dercsyong committed Apr 13, 2019
1 parent f8ca3ee commit e6b0fd78e758bf2e522f8f49ef2d46800f53397f
Showing with 2 additions and 2 deletions.
  1. +2 −2 theMark.php
@@ -298,7 +298,7 @@ private function linkProcessor($text, $type) {
if(!empty($href[1])) {
preg_match_all('/[&?]?([^=]+)=([^\&]+)/', htmlspecialchars_decode($href[1]), $param, PREG_SET_ORDER);
if(empty($param)){
return '<a href="'.$match[1].'" class="wiki-link-external" target="_blank">'.$this->formatParser($href[1]).'</a>';
return $href[1];
} else {
foreach($param as $pr) {
switch($pr[1]) {
@@ -370,7 +370,7 @@ private function linkProcessor($text, $type) {
}
$paramtxt .= ($csstxt!=''?' style="'.$csstxt.'"':'');
return '<a href="'.$href[0].'" class="wiki-link-internal" target="_blank">'.self::getImage($href[1], $paramtxt).$this->formatParser($extra).'</a>';
return '<a href="'.$href[0].'" class="wiki-link-internal" target="_blank">'.self::getImage(str_replace(array('[', ']'), '', $href[1]), $paramtxt).$this->formatParser($extra).'</a>';
}
$targetUrl = $href[0];

0 comments on commit e6b0fd7

Please sign in to comment.
You can’t perform that action at this time.