現状:
<h2 id="content_1_2">ここに見出し
<a class="anchor_super" id="h01ho2g3e">†</a>
</h2>
こうしたい:
<a class="anchor_super" id="h01ho2g3e">†</a>
<h2 id="content_1_2">ここに見出し
</h2>
見出し記法の処理付近にある $text . $anchor の順序を入れ替えます。
ファイルは lib/convert_html.php
lib/convert_html.php (中略) function getAnchor($text, $level) (中略) // Add heading return array($text . $anchor, $this->count > 1 ? "\n" . $top : '', $autoid); ↓ // Add heading return array($anchor . $text, $this->count > 1 ? "\n" . $top : '', $autoid);
<h2 id="content_1_2">
<a class="anchor_super" id="h01ho2g3e">†</a>
ここに見出し
</h2>
…になってしまいますが、アンカーを前にすることはできます。
(バージョンは PukiWiki Plus! 1.4.7plus-u2-i18n)