Closed (fixed)
Project:
Freelinking
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2009 at 12:45 UTC
Updated:
14 Nov 2009 at 08:10 UTC
I wrote a little info page for our Intranet that uses freelinking, and found that there's no way I can display [[ ]] as simple text to illustrate its usage.
Would be great to have something like \[[]] to escape the freelinking mechanism.
Thx and I love this module!
Comments
Comment #1
eafarris commentedThis is fixed in 3.x-dev. It can be added to past versions by adding "[^\\\\]" (w/o the quotes) to the regular expression.
Comment #2
Grayside commentedYou could replace your first left square bracket with the html entity: & #91;
Comment #3
Grayside commentedThis modification causes matching to fail on freelinks at the very start of any piece of text. To fix it, I appended a space to the start of the text just for matching purposes. Kind of a hack, but the regex approaches were providing uncooperative. The final line looks something like this:
preg_match_all('/[^\\\\]...', ' ' . $text, $matches);Comment #4
Grayside commentedThis is also previously fixed with ![[freelink]] in 6.x-1.8.