|
Cookbook /
LazyWebLinksSummary: Cause markup text beginning with "www." to be automatically converted into a link to an external site
Version:
Prerequisites:
Status:
Maintainer:
GoalCause markup text beginning with "www." to be automatically converted into a link to an external site. SolutionAdd the following code to a local customization file: Markup('lazyweb','<wikilink', "/\\bwww\\.[^\\s$UrlExcludeChars]*[^\\s.,?!$UrlExcludeChars]/e", "Keep(MakeLink(\$pagename,'http://$0','$0'),'L')"); DiscussionThis recipe causes any text beginning with "www.", such as www.pmwiki.org, to be automatically converted to an http-link to an external site. This recipe has been enabled on this page to allow experimentation. ContributorsSandbox |