From: joey Date: Wed, 4 Jul 2007 01:11:48 +0000 (+0000) Subject: web commit by http://xtermin.us/: added comment on using CSS3 selectors, possible... X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/5b70a5690b788acc8c433d786c887186d2982fe9?hp=db194710d22be5f695ea55706fad71790803ce9c web commit by http://xtermin.us/: added comment on using CSS3 selectors, possible places to start for a plugin to achieve this. --- diff --git a/doc/todo/CSS_classes_for_links.mdwn b/doc/todo/CSS_classes_for_links.mdwn index df4d8fc4d..f298fe2c7 100644 --- a/doc/todo/CSS_classes_for_links.mdwn +++ b/doc/todo/CSS_classes_for_links.mdwn @@ -32,4 +32,16 @@ for external links is enough for me :) Please look at my example: My best regards, ---Pawel \ No newline at end of file +--Pawel + +> If you did not already know, you can achieve similar results using CSS3 +> selectors. Eg: `a[href="http://www.foobar.com/"] { foobar: css }` or +> `a[title~="Mail"] {text-decoration: none; }`. See +> for a complete list. +> +> If you need to achieve this in IkiWiki itself, I imagine you could create a +> plugin which runs in the `format` phase of rendering and search/replaces +> specific link patterns. This should be a fairly simple exercise in regular +> expressions. +> +> --CharlesMauch