|
|
|
@ -161,18 +161,22 @@ namespace FLocal.Common { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public string ParseQuote(string input) { |
|
|
|
|
string result = this.quotesParser.Parse(input).Format(new DelegatePostParsingContext(), this.simpleFormatter); |
|
|
|
|
string result = this.quotesParser.Parse(input).Format(CreateStubContext(), this.simpleFormatter); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static BBCodes.IPostParsingContext CreateStubContext() { |
|
|
|
|
return new DelegatePostParsingContext(user => {}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static string UBBToIntermediate(BBCodes.IPostParsingContext context, string UBB) { |
|
|
|
|
return BBParserGateway.instance.Parse(context, UBB); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static string UBBToIntermediate(string UBB) { |
|
|
|
|
return UBBToIntermediate(new DelegatePostParsingContext(), UBB); |
|
|
|
|
return UBBToIntermediate(CreateStubContext(), UBB); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static string ShallerToUBB(string shaller) { |
|
|
|
|