リンクは次の方法で定義できます。
[foo](http://foo)
//or
[foo][1]
[1]:http://foo
php-markdownをどのようにカスタマイズして、そうするかどうかを選択できるようにしますかrel="nofollow"
?何かのようなもの
[foo](!http://foo "this is the title")
どこが帰属を!
意味しrel="nofollow"
ますか?
リンクは次の方法で定義できます。
[foo](http://foo)
//or
[foo][1]
[1]:http://foo
php-markdownをどのようにカスタマイズして、そうするかどうかを選択できるようにしますかrel="nofollow"
?何かのようなもの
[foo](!http://foo "this is the title")
どこが帰属を!
意味しrel="nofollow"
ますか?
参照リンクについては、必要に応じて733行目(執筆時点)周辺の行を変更して追加しnofollow
ます。インラインリンクの場合は、752行目を変更します。
現在、参照リンクコードは次のようになっています。
$url = $this->urls[$link_id];
$url = $this->encodeAttribute($url);
$result = "<a href=\"$url\"";
if ( isset( $this->titles[$link_id] ) ) {
$title = $this->titles[$link_id];
$title = $this->encodeAttribute($title);
$result .= " title=\"$title\"";
}
$link_text = $this->runSpanGamut($link_text);
$result .= ">$link_text</a>";
$result = $this->hashPart($result);
インラインリンクコードは似ています。$url
で始まるかどうかのチェックを追加する必要が!
あります。そうである場合は、それを取り除きrel="nofollow"
、の適切な場所に配置し$result
ます。