format of code in text:
[image:mypicture.jpg|left|my caption ]
I trim out spaces, so doesn't matter if spaces around the pipe symbol or not, as users can never remember.
If a caption is being supplied, then a left or right alignment must be supplied.
Here is the code, which replaced that in : convertSingleBracket function.
Case "image"<br/>
' Image<br/>
Dim rawrightText As String<br/>
Dim caption As string<br/>
leftText = StrRightBack(newText, ":")<br/>
linkText = StrLeft(leftText, "|")<br/>
If (Len(linkText) = 0) Then<br/>
linkText = leftText<br/>
End If<br/>
rawrightText = Trim(StrRight(leftText, "|"))<br/>
If ( InStr(rawrightText, "|") <> 0) Then<br/>
rightText=StrLeftBack(rawrightText, "|")<br/>
caption = Trim(StrRightBack(rawrightText, "|"))<br/>
Else<br/>
rightText = rawrightText<br/>
End If<br/>
newText = |<img class="wiki-img" src="/| & dbPath & "/Pages/" &_<br/>
Me.Subject & "/$file/" & linkText & |"|<br/>
If (Len(rightText) = 0) Then<br/>
newText = newText & |>|<br/>
Elseif (Lcase(rightText) = "right") Or (Lcase(rightText) = "left") Then<br/>
newText = |<div style="padding-top:10px;float:| & rightText & |">| & newText & |><p>| & caption & |</div><div style="padding-bottom:10px;clear:both"></div>|<br/>
Else<br/>
newText = newText & | alt="| & rightText & |">|<br/>
End If