Skip to content

Commit

Permalink
Item13367: Adjust tml link regex to be less greedy
Browse files Browse the repository at this point in the history
This fixes corrupted rendering of the Extensions report.  Note also
needed changes to the Extensions.JQueryPlugin form.  It can't use
[[Tasks.Item1234]] style links and expect them to work in configure.
  • Loading branch information
gac410 committed Apr 10, 2015
1 parent fde394d commit 8e2f345
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -44,9 +44,14 @@ var TML = {
/(^|[\s\(])\=(\S+?|\S[^\n]*?\S)\=(?:$|(?=[\s,.;:!?\)]))/g,
"$1<code>$2</code>"
],
// [[url]]
[
/\[\[([^\]]+)\]\]/g,
'<a target="_blank" href="$1">$1</a>'
],
// [[url][text]]
[
/\[\[(.*?)\]\[(.*?)\]\]/g,
/\[\[([^\]]+)\]\[([^\]]+)\]\]/g,
'<a target="_blank" href="$1">$2</a>'
]
],
Expand Down

0 comments on commit 8e2f345

Please sign in to comment.