カテゴリ | |
---|---|
サマリ | 見出しの文に「打ち消し線」の装飾をつけたとしても、目次(#contentsの出力結果)にはそれが反映されない |
バージョン | 1.4.3 1.4.7 |
投稿者 | 「柴田」 |
状態 | 完了 |
投稿日 | 2004-08-26 (木) 14:43:23 |
ざっと質問箱をさらってみましたが、見つかりませんでした。
見出し(*-***)が打ち消し線(%%)で消してあっても、#contents の一覧表示には反映されないようです。 contents の一覧の内容は編集できないため、打ち消し線を無理矢理付けることもできません。 私めには、convert_html.php を読み解くスキルはありませんので、どなたか対処法をご教授願います。
html.php 300行目付近 // HTMLタグを取り除く function strip_htmltag($str) { global $_symbol_noexists; $noexists_pattern = '#<span class="noexists">([^<]*)<a[^>]+>'. preg_quote($_symbol_noexists,'#'). '</a></span>#'; $str = preg_replace($noexists_pattern,'$1',$str); - //$str = preg_replace('/<a[^>]+>\?<\/a>/','',$str); - return preg_replace('/<[^>]+>/','',$str); + $str = preg_replace('/<a[^>]+>\?<\/a>/','',$str); + return $str; }
lib/convert_html.php(1.18) : 966行目付近 function Contents_UList($text, $level, $id) { // Reformatting $text // A line started with "\n" means "preformatted" ... X( - make_heading($text); + $text = make_link($text); + $text = strip_htmltag($text, FALSE); $text = "\n" . '<a href="#' . $id . '">' . $text . '</a>' . "\n";