This works, but is a hack:
' Indent 2em spaces for each colon found at the beginning of a line<br/>
' param txt - the whole wiki page text<br/>
' param amount - the number of :'s to search for<br/>
Private Function doIndent (txt As String, amount As Integer) As String<br/>
doIndent = ReplaceRangeEnds(txt, Chr(10) & Ustring(amount, ":"), Chr(10), _<br/>
Chr(10) & "<div style='margin-left: " & (2 * amount) & "em'>" , " </div>" & Chr(10), "*" , True) <br/>
<br/>
doIndent = ReplaceRangeEnds(doIndent, Chr(10) & Ustring(amount, ":"), Chr(10), _<br/>
"<div style='margin-left: " & (2 * amount) & "em'>" , " </div>", Chr(10) , False) <br/>
End Function<br/>
I don't like this code, but it beats forcing users to insert extra blank lines in the wiki text.