From 5b70a5690b788acc8c433d786c887186d2982fe9 Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 4 Jul 2007 01:11:48 +0000 Subject: web commit by http://xtermin.us/: added comment on using CSS3 selectors, possible places to start for a plugin to achieve this. --- doc/todo/CSS_classes_for_links.mdwn | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'doc/todo') 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 -- cgit v1.2.3