-~ほげほげほげ ほげほげほげ -ふがふがふが -~ほげほげほげ ほげほげほげ
とあるとき、1つめのリストの段落が正しく出力されない。下記のような出力になってしまう。
<li><p>ほげほげほげ</p> ほげほげほげ</li> <li>ふがふがふが</li> <li><p>ほげほげほげほげほげほげ</p></li>
3つめのリストの段落は正しく出力されている。1つめのリストの段落が行末で終了と誤判定されているのが拙い。
diff -u -r1.55 convert_html.php --- convert_html.php 2 Nov 2003 14:04:21 -0000 1.55 +++ convert_html.php 3 Nov 2003 14:45:44 -0000 @@ -213,7 +213,7 @@ $this->level = $level; if ($text != '') { - $this->insert(new Inline($text)); + $this->last = &$this->insert(new Inline($text)); } }