1 [[!meta author="anarcat"]]
2 [[!template id=plugin name=i18nanchors author="[[anarcat]]"]]
4 [[!template id=gitbranch branch=anarcat/i18n-headinghanchors author="[[anarcat]]"]]
6 This plugin is similar to [[plugins/headinganchors]] except:
8 1. it overrides other attributes previously set on heading elements
9 (to override the multimarkdown-generated headings for example)
11 2. deals with non-ASCII charsets better: for example, 北亰 becomes
12 "bei-jing" instead of "z-.E4.BA.B0" and "liberté" becomes
13 "liberte" instead of "libert.C3.A9"
15 This is a separate plugin because this is a backwards-incompatible
16 change, but I would be more than happy to make a patch to merge this
17 in the main plugin if necessary.
19 Also note that *all* heading attributes are overriden with the ID
20 tag. If this is not desirable, we'd need to fire up a full
21 HTML::Parser or do some more regex magic to preserve the attributes
22 other than `id=` which we want to keep. -- [[anarcat]]