Bug: WikiSyntax makeup disables WikiWords autolinking

Typing something like this _WikiWord_ does not result in WikiWord .
Neither *WordWord*, nor __WordWord__ ...

Test case

Insert _SomethingLikeThis_ and see on result.

Environment

TWiki version: TWikiRelease01Sep2004
Server OS: Linux 2.4.26
Web server: Apache 1.3.31
Perl version: 5.8.4
Client OS: Win2k sp4
Web Browser: Mozilla 1.7.2

-- 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

Edit | Attach | (削除) Watch (削除ここまで) | Print version | History : r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004年09月17日 - SamHasler
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

AltStyle によって変換されたページ (->オリジナル) /