aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/contrib/i18nheadinganchors.mdwn
diff options
context:
space:
mode:
authoranarcat <anarcat@web>2017-04-12 16:14:30 -0400
committeradmin <admin@branchable.com>2017-04-12 16:14:30 -0400
commit7d72549ef81ebf4c1e8a9323c609e322f17a3f2c (patch)
tree80271e7c7ace8118035e48f2c039ff08887df514 /doc/plugins/contrib/i18nheadinganchors.mdwn
parent42b8a58565f6dd878956c9a3876291d08be000ef (diff)
downloadikiwiki-7d72549ef81ebf4c1e8a9323c609e322f17a3f2c.tar
ikiwiki-7d72549ef81ebf4c1e8a9323c609e322f17a3f2c.tar.gz
rename plugins/contrib/i18nheadinganchor.mdwn to plugins/contrib/i18nheadinganchors.mdwn
Diffstat (limited to 'doc/plugins/contrib/i18nheadinganchors.mdwn')
-rw-r--r--doc/plugins/contrib/i18nheadinganchors.mdwn19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/plugins/contrib/i18nheadinganchors.mdwn b/doc/plugins/contrib/i18nheadinganchors.mdwn
new file mode 100644
index 000000000..3bef82ef0
--- /dev/null
+++ b/doc/plugins/contrib/i18nheadinganchors.mdwn
@@ -0,0 +1,19 @@
+[[!template id=gitbranch branch=anarcat/i18n-headinghanchors author="[[anarcat]]"]]
+
+This plugin is similar to [[plugins/headinganchors]] except:
+
+ 1. it overrides other attributes previously set on heading elements
+ (to override the multimarkdown-generated headings for example)
+
+ 2. deals with non-ASCII charsets better: for example, 北亰 becomes
+ "bei-jing" instead of "z-.E4.BA.B0" and "liberté" becomes
+ "liberte" instead of "libert.C3.A9"
+
+This is a separate plugin because this is a backwards-incompatible
+change, but I would be more than happy to make a patch to merge this
+in the main plugin if necessary.
+
+Also note that *all* heading attributes are overriden with the ID
+tag. If this is not desirable, we'd need to fire up a full
+HTML::Parser or do some more regex magic to preserve the attributes
+other than `id=` which we want to keep. -- [[anarcat]]