- Timestamp:
- 09/23/08 02:51:55 (2 months ago)
- Files:
-
- 1 modified
-
lang/php/HatenaSyntax/trunk/HatenaSyntax.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/php/HatenaSyntax/trunk/HatenaSyntax.php
r14915 r19746 78 78 public function addFirstCharSyntax(HatenaSyntax_FirstCharSyntaxInterface $syntax) 79 79 { 80 $this->firstCharSyntaxes[$syntax->getIdentifier()] = &$syntax;80 $this->firstCharSyntaxes[$syntax->getIdentifier()] = $syntax; 81 81 return $this; 82 82 } 83 83 public function addInlineSyntax(HatenaSyntax_InlineSyntaxInterface $syntax) 84 84 { 85 $this->inlineSyntaxes[] = &$syntax;85 $this->inlineSyntaxes[] = $syntax; 86 86 return $this; 87 87 } 88 88 public function parseStructure($contents) 89 89 { 90 $openingTags = &$this->openingTags;91 $closingTags = &$this->closingTags;92 $markupSyntaxes = &$this->markupSyntaxes;93 $firstCharSyntaxes = &$this->firstCharSyntaxes;90 $openingTags = $this->openingTags; 91 $closingTags = $this->closingTags; 92 $markupSyntaxes = $this->markupSyntaxes; 93 $firstCharSyntaxes = $this->firstCharSyntaxes; 94 94 95 95 $lines = $this->getLines($contents); … … 101 101 // MarkupSyntaxだったら 102 102 if(isset($openingTags[$lines[$i]])) { 103 $block['syntax'] = &$markupSyntaxes[$lines[$i]];103 $block['syntax'] = $markupSyntaxes[$lines[$i]]; 104 104 $block['type'] = 'markup'; 105 105 … … 113 113 $firstChar = $this->getFirstCharSyntaxIdentifier($lines[$i]); 114 114 115 $block['syntax'] = &$firstCharSyntaxes[$firstChar];115 $block['syntax'] = $firstCharSyntaxes[$firstChar]; 116 116 $block['type'] = 'firstchar'; 117 117 … … 300 300 $id = $this->id; 301 301 $line = $result[0] 302 . '(<a href="#f' . $num . $id . '" name =" #b' . $num . $id302 . '(<a href="#f' . $num . $id . '" name ="b' . $num . $id 303 303 .'" title="' . $result[1] . '">*' . $num . '</a>)' . $result[2] . PHP_EOL; 304 304 } … … 334 334 335 335 foreach($footnotes as $num => $note) 336 $result .= '<p><a href="#b' . ++$num . $id . '" name=" #f' . $num . $id . '">*' . $num336 $result .= '<p><a href="#b' . ++$num . $id . '" name="f' . $num . $id . '">*' . $num 337 337 . '</a>: ' . $note . '</p>' . PHP_EOL; 338 338
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)