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

eafarris’s picture

This is fixed in 3.x-dev. It can be added to past versions by adding "[^\\\\]" (w/o the quotes) to the regular expression.

Grayside’s picture

You could replace your first left square bracket with the html entity: & #91;

Grayside’s picture

This 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);

Grayside’s picture

Version: 6.x-1.7 » 6.x-1.8
Status: Active » Fixed

This is also previously fixed with ![[freelink]] in 6.x-1.8.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.