--- SMW_Hooks.php.orig Wed Feb 28 15:51:54 2007 +++ SMW_Hooks.php Wed Feb 28 15:52:24 2007 @@ -34,7 +34,7 @@ $text = preg_replace_callback($semanticLinkPattern, 'smwfParseRelationsCallback', $text); // Parse links to extract attribute values - $semanticLinkPattern = '(\[\[(([^:][^]]*):=)+([^\|\]]*)(\|([^]]*))?\]\])'; + $semanticLinkPattern = '(\[\[(([^:][^]]*):=)+((?:[^|\[\]]|\[\[[^]]*\]\])*)(\|([^]]*))?\]\])'; $text = preg_replace_callback($semanticLinkPattern, 'smwfParseAttributesCallback', $text); // print the results if enabled (we have to parse them in any case, in order to