#!/usr/bin/perl # CamelCase links package IkiWiki::Plugin::camelcase; use warnings; use strict; use IkiWiki 2.00; sub import { #{{{ hook(type => "filter", id => "camelcase", call => \&filter); } # }}} sub filter (@) { #{{{ my %params=@_; # Make CamelCase links work by promoting them to fullfledged # WikiLinks. This regexp is based on the one in Text::WikiFormat. $params{content}=~s{ (?=]) # try to avoid expanding non-links # with a zero width negative lookbehind for # characters that suggest it's not a link \b # word boundry ( (?: [A-Z] # Uppercase start [a-z0-9] # followed by lowercase \w* # and rest of word ) {2,} # repeated twice ) }{[[$1]]}gx; return $params{content}; } #}}} 1 lt='cgit logo'/> index : notmuch
Unnamed repository; edit this file 'description' to name the repository.Jonas Smedegaard
summaryrefslogtreecommitdiff
path: root/tags/57/c3/20170831090346.7A8437614@lxp5.free-owl.de/unread
diff options
context:
space:
mode:
Diffstat (limited to 'tags/57/c3/20170831090346.7A8437614@lxp5.free-owl.de/unread')
-rw-r--r--tags/57/c3/20170831090346.7A8437614@lxp5.free-owl.de/unread0
1 files changed, 0 insertions, 0 deletions
idth: -nan%;'/>
1 files changed, 0 insertions, 0 deletions