]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
use heading identifiers in TOC links
authorAntoine Beaupré <anarcat@debian.org>
Wed, 12 Apr 2017 19:42:42 +0000 (15:42 -0400)
committerSimon McVittie <smcv@debian.org>
Tue, 16 May 2017 07:55:23 +0000 (08:55 +0100)
commitb5b48d5bb56105e1188b78131de2d575e918969c
tree811844c77c4020524e50e105df11a01d05c38992
parent55ae3c7368627c5c875b27df8cedba05a112b2aa
use heading identifiers in TOC links

reasoning: if headings have identifiers, they are probably more useful
anchors than the automatically generated anchors we build in the toc
plugin. this can happen if, for example, you use the `multimarkdown`
plugin, which inserts `id` tags for every header it encounters. this
also leverages the `headinganchors` plugin nicely.

keeps backwards-compatibility with old toc-generated #indexXhY
anchors.
IkiWiki/Plugin/toc.pm