mirror of
https://github.com/typecho/typecho.git
synced 2025-03-23 19:40:22 +01:00
fixed #102
This commit is contained in:
parent
b9cf37d815
commit
7da8d5a0be
@ -1334,12 +1334,13 @@ class Markdown {
|
||||
|
||||
$this->tail = '';
|
||||
if ($level < 0) {
|
||||
$link = preg_replace("/\){1," . (- $level) . "}$/", $link, array($this, '_doAutoLinks_url_callback_callback'));
|
||||
$link = preg_replace_callback("/\){1," . (- $level) . "}$/",
|
||||
array($this, '_doAutoLinks_url_callback_callback'), $link);
|
||||
}
|
||||
|
||||
$url = $this->encodeAttribute($matches[2] . $matches[3]);
|
||||
$url = $this->encodeAttribute($protocol . $link);
|
||||
$link = "<a rel=\"nofollow\" href=\"$url\">$url</a>";
|
||||
return '<' . $protocol . $this->hashPart($link) . '>' . $this->tail;
|
||||
return $this->hashPart($link) . $this->tail;
|
||||
}
|
||||
|
||||
protected function _doAutoLinks_email_callback($matches) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user