|
@@ 776-794 (lines=19) @@
|
| 773 |
|
} |
| 774 |
|
return $result; |
| 775 |
|
} |
| 776 |
|
function _doAnchors_inline_callback($matches) { |
| 777 |
|
$whole_match = $matches[1]; |
| 778 |
|
$link_text = $this->runSpanGamut($matches[2]); |
| 779 |
|
$url = $matches[3] == '' ? $matches[4] : $matches[3]; |
| 780 |
|
$title =& $matches[7]; |
| 781 |
|
|
| 782 |
|
$url = $this->encodeAttribute($url); |
| 783 |
|
|
| 784 |
|
$result = "<a href=\"$url\""; |
| 785 |
|
if (isset($title)) { |
| 786 |
|
$title = $this->encodeAttribute($title); |
| 787 |
|
$result .= " title=\"$title\""; |
| 788 |
|
} |
| 789 |
|
|
| 790 |
|
$link_text = $this->runSpanGamut($link_text); |
| 791 |
|
$result .= ">$link_text</a>"; |
| 792 |
|
|
| 793 |
|
return $this->hashPart($result); |
| 794 |
|
} |
| 795 |
|
|
| 796 |
|
|
| 797 |
|
function doImages($text) { |
|
@@ 880-896 (lines=17) @@
|
| 877 |
|
|
| 878 |
|
return $result; |
| 879 |
|
} |
| 880 |
|
function _doImages_inline_callback($matches) { |
| 881 |
|
$whole_match = $matches[1]; |
| 882 |
|
$alt_text = $matches[2]; |
| 883 |
|
$url = $matches[3] == '' ? $matches[4] : $matches[3]; |
| 884 |
|
$title =& $matches[7]; |
| 885 |
|
|
| 886 |
|
$alt_text = $this->encodeAttribute($alt_text); |
| 887 |
|
$url = $this->encodeAttribute($url); |
| 888 |
|
$result = "<img src=\"$url\" alt=\"$alt_text\""; |
| 889 |
|
if (isset($title)) { |
| 890 |
|
$title = $this->encodeAttribute($title); |
| 891 |
|
$result .= " title=\"$title\""; # $title already quoted |
| 892 |
|
} |
| 893 |
|
$result .= $this->empty_element_suffix; |
| 894 |
|
|
| 895 |
|
return $this->hashPart($result); |
| 896 |
|
} |
| 897 |
|
|
| 898 |
|
|
| 899 |
|
function doHeaders($text) { |