1 [[!template id=gitbranch branch=chrysn/linkmapenhancement author="[[chrysn]]"]]
3 [[ikiwiki/directive/linkmap]]s display the file name instead of the pagetitle, showing unsightly underscore escapes and underscores instead of blanks to users.
5 the attached [[!taglink patch]] fixes this; from its commit message:
7 display the pagetitle() in linkmaps
9 without this patch, linkmaps display underscores and underscore escape
10 sequences in the rendered output.
12 this introduces a pageescape function, which invoces pagetitle() to get
13 rid of underscore escapes and wraps the resulting utf8 string
14 appropriately for inclusion in a dot file (using dot's html encoding
15 because it can represent the '\"' dyad properly, and because it doesn't
16 need special-casing of newlines).
18 the output will look much better (at least in my wikis) with the "[[bugs/pagetitle function does not respect meta titles]]" issue fixed.
20 the patch is stored in [[the patch.pl]] as created by git-format-patch, and can
21 be pulled from the abovementioned branch.