make anchors visible in the page, not just in the markup

This commit is contained in:
Shish
2014-08-30 13:18:14 +01:00
parent 9c71f59061
commit c651845401
3 changed files with 8 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class BBCodeUnitTest extends UnitTestCase {
public function testAnchor() {
$this->assertEqual(
$this->filter("[anchor=rules]Rules[/anchor]"),
"<a name=\"bb-rules\">Rules</a>");
'<span class="anchor">Rules <a class="alink" href="#bb-rules" name="bb-rules" title="link to this anchor"> ¶ </a></span>');
}
private function filter($in) {