convert_html関数を使っているプラグインを本文に書くと、その行以前にかかれた本文の注釈の本体が消えてしまいます。
SandBoxに現象のサンプルを書いています。これは結構いや~んな状況なので、以下の提案をさせてください。
convert_html関数から、
こんな感じになります。
- $note_id = 1; - $foot_explain = array();
- if($foot_explain) - { - $str .= "\n"; - $str .= "$note_hr\n"; - $str .= join("\n",inline2($foot_explain)); - }
+ global $foot_explain, $note_hr; + if ($foot_explain) + $body .= "\n$note_hr\n".join("\n",inline2($foot_explain)); require(SKIN_FILE);
//** 初期処理 ** $update_exec = ""; $content_id = 0; $user_rules = array_merge($str_rules,$line_rules); +$note_id = 1; +$foot_explain = array();
なお、上記修正を施したときに判明している問題は以下のとおりです。
ご検討ください。