|
@@ 2477-2498 (lines=22) @@
|
| 2474 |
|
} |
| 2475 |
|
return $result; |
| 2476 |
|
} |
| 2477 |
|
function _doAnchors_inline_callback($matches) { |
| 2478 |
|
$whole_match = $matches[1]; |
| 2479 |
|
$link_text = $this->runSpanGamut($matches[2]); |
| 2480 |
|
$url = $matches[3] == '' ? $matches[4] : $matches[3]; |
| 2481 |
|
$title =& $matches[7]; |
| 2482 |
|
$attr = $this->doExtraAttributes("a", $dummy =& $matches[8]); |
| 2483 |
|
|
| 2484 |
|
|
| 2485 |
|
$url = $this->encodeAttribute($url); |
| 2486 |
|
|
| 2487 |
|
$result = "<a href=\"$url\""; |
| 2488 |
|
if (isset($title)) { |
| 2489 |
|
$title = $this->encodeAttribute($title); |
| 2490 |
|
$result .= " title=\"$title\""; |
| 2491 |
|
} |
| 2492 |
|
$result .= $attr; |
| 2493 |
|
|
| 2494 |
|
$link_text = $this->runSpanGamut($link_text); |
| 2495 |
|
$result .= ">$link_text</a>"; |
| 2496 |
|
|
| 2497 |
|
return $this->hashPart($result); |
| 2498 |
|
} |
| 2499 |
|
|
| 2500 |
|
|
| 2501 |
|
function doImages($text) { |
|
@@ 2587-2605 (lines=19) @@
|
| 2584 |
|
|
| 2585 |
|
return $result; |
| 2586 |
|
} |
| 2587 |
|
function _doImages_inline_callback($matches) { |
| 2588 |
|
$whole_match = $matches[1]; |
| 2589 |
|
$alt_text = $matches[2]; |
| 2590 |
|
$url = $matches[3] == '' ? $matches[4] : $matches[3]; |
| 2591 |
|
$title =& $matches[7]; |
| 2592 |
|
$attr = $this->doExtraAttributes("img", $dummy =& $matches[8]); |
| 2593 |
|
|
| 2594 |
|
$alt_text = $this->encodeAttribute($alt_text); |
| 2595 |
|
$url = $this->encodeAttribute($url); |
| 2596 |
|
$result = "<img src=\"$url\" alt=\"$alt_text\""; |
| 2597 |
|
if (isset($title)) { |
| 2598 |
|
$title = $this->encodeAttribute($title); |
| 2599 |
|
$result .= " title=\"$title\""; # $title already quoted |
| 2600 |
|
} |
| 2601 |
|
$result .= $attr; |
| 2602 |
|
$result .= $this->empty_element_suffix; |
| 2603 |
|
|
| 2604 |
|
return $this->hashPart($result); |
| 2605 |
|
} |
| 2606 |
|
|
| 2607 |
|
|
| 2608 |
|
function doHeaders($text) { |