Imports System Imports uCalcSoftware Public Module Program Public Sub Main() Dim uc As New uCalc() Dim t = uc.NewTransformer() Dim source = "Some text... [code]print(""Hello, World!"") // Quoted with "" var x = 'test';[/code] ...more text." '// This rule must disable QuoteSensitive and StatementSensitive to correctly '// capture the multi-line block containing single and double quotes. Dim rule = t.FromTo("'['code']'{content}'['/code']'", "``` {content} ```") rule.QuoteSensitive = false rule.StatementSensitive = false Console.WriteLine(t.Transform(source)) End Sub End Module