/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: convert_html.php,v 1.47 2003/06/30 00:38:21 arino Exp $
+// $Id: convert_html.php,v 1.48 2003/07/05 01:40:49 arino Exp $
//
function convert_html($lines)
{
// ´ØÏ¢¤¹¤ë¥Ú¡¼¥¸
// <p>¤Î¤È¤¤Ï¹ÔƬ¤«¤é¡¢<del>¤Î¤È¤¤Ï¾¤ÎÍ×ÁǤλÒÍ×ÁǤȤ·¤Æ¸ºß
$text = preg_replace('/<p><del>#related<\/del><\/p>/',make_related($vars['page'],'p'),$text);
- $text = preg_replace('/<del>#related<\/del>/',make_related($vars['page']),$text);
+ $text = preg_replace('/<del>#related<\/del>/',make_related($vars['page'],'del'),$text);
return $text;
}
function block(&$lines,$start,$end,$class)
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: html.php,v 1.87 2003/07/05 01:31:55 arino Exp $
+// $Id: html.php,v 1.88 2003/07/05 01:40:49 arino Exp $
//
// ËÜʸ¤ò½ÐÎÏ
"<a href=\"$script?$r_page\">$s_page</a>$passage";
}
- if ($tag == 'p')
+ if ($tag == 'p') // ¹ÔƬ¤«¤é
{
$margin = $_ul_left_margin + $_ul_margin;
$style = sprintf($_list_pad_str,1,$margin,$margin);
- $retval = "\n<ul $style>\n<li>".join($rule_related_str,$_links)."</li>\n</ul>\n";
+ $retval = "\n<ul$style>\n<li>".join($rule_related_str,$_links)."</li>\n</ul>\n";
+ }
+ else if ($tag)
+ {
+ $retval = join($rule_related_str,$_links);
}
else
{