Tags:
create new tag
view all tags

Question

Wiki Anchors (#WikiName) are only allowed at begining of a line. I suggest to release this restriction (maybe optionaly) because Wiki Anchors are very usefull in long tables, lists, etc...

I suggest to add anchors regex detection in TWiki.pm (~line 2046) :

# '#WikiName' anchors
            s/^(\#)($wikiWordRegex)/ '<a name="' . &makeAnchorName( $2 ) . '"><\/a>'/ge;
       # PN : allow anchors anywhere but begining with a white space or in a table
       <font color=red><i>s/ (\#)($wikiWordRegex)/ '<a name="' . &makeAnchorName( $2 ) . '"><\/a>'/ge;</i></font>

Environment

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: any
Web server: any
Perl version: any
Client OS: any
Web Browser: any

-- PatrickNomblot - 26 Aug 2003

Answer

See also FragmentIdentifierWikification

-- JonathanCline - 28 Aug 2003

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-01-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
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.