");
+ // IE needs \r\n for line breaks
+ dummy.Append(EscapeWikiMarkup(content).Replace("\n", "\r\n"));
+ dummy.Append("
");
+ sb.Insert(match.Index, dummy.ToString());
+ }
+ ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd);
+ match = FullCodeRegex.Match(sb.ToString(), end);
+ }
+
if(current != null) {
// Check redirection
match = RedirectionRegex.Match(sb.ToString());
@@ -177,23 +194,6 @@ namespace ScrewTurn.Wiki {
}
}
- // Before Producing HTML
- match = FullCodeRegex.Match(sb.ToString());
- while(match.Success) {
- if(!IsNoWikied(match.Index, noWikiBegin, noWikiEnd, out end)) {
- sb.Remove(match.Index, match.Length);
- string content = match.Value.Substring(2, match.Length - 4);
- dummy = new StringBuilder();
- dummy.Append("