Typing something like this
_WikiWord_ does not result in
WikiWord.
Neither
*WordWord*, nor
__WordWord__ ...
Test case
Insert
_SomethingLikeThis_ and see on result.
Environment
--
VladimirPodryvanov - 16 Sep 2004
Follow up
This happens because
([\s\(])($regex{wikiWordRegex}) regex on line 1092 in
TWiki/Render.pm cannot recognize makeuped
WikiWord
1091 # 'TopicName' link:
1092 s/([\s\(])($regex{wikiWordRegex})/&internalLink($1,$theWeb,$2,$2,"",1)/geo;
To solve this I added additional
" ", space symbol, before
$2 in lines 1044-1046.
1041 # Emphasizing
...
1044 s/([\s\(])__([^\s]+?|[^\s].*?[^\s])__([\s\,\.\;\:\!\?\)])/$1<strong><em> $2<\/em><\/s
1045 s/([\s\(])\*([^\s]+?|[^\s].*?[^\s])\*([\s\,\.\;\:\!\?\)])/$1<strong> $2<\/strong>$3/g
1046 s/([\s\(])_([^\s]+?|[^\s].*?[^\s])_([\s\,\.\;\:\!\?\)])/$1<em> $2<\/em>$3/g;
--
VladimirPodryvanov - 16 Sep 2004
This is spec, autolinks are only done if WikiWords are preceeded by white space or parenthesis. This reduces the likelihood of false links. If you need links with markup write for example
*[[WebNotify]]* to get a bold
WebNotify link. We would break existing content if we change the link rule.
See also
TextFormattingRules documentation.
--
PeterThoeny - 17 Sep 2004
Fix record