Scans through HTML headings and creates a "Table of Contents" list for your posts/pages automaticly. Modified from Scott Yang's Table of Contents Generator plugin 0.4 (20110626).
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.markdown
hacklog_toc.php

README.markdown

Hacklog TOC Generator

WordPress Plugin Info

Plugin Name: Hacklog TOC Generator

Plugin URI: http://ihacklog.com/?p=5045

Description: Scans through HTML headings and creates a "Table of Contents" list for your posts/pages automaticly. Modified from Scott Yang's Table of Contents Generator plugin 0.4 (20110626).

Version: 1.0.5

Author: 荒野无灯

Author URI: http://ihacklog.com

change log

1.0.5

  • fixed incorrect float clearing.

1.0.4

  • added float clearing and left padding.

1.0.3

  • fixed dumplicated h1 textNode bug.
  • wiki-like anchor name.

1.0.2

  • 修改the_content filter优先级为9
  • 换用sanitize_title处理toc锚文字
  • 增加strpos快速判断,加快处理速度(无h?标签不处理)