/// <summary> /// Read the PSMarkdownOptionInfo set in SessionState. /// </summary> protected override void BeginProcessing() { _mdOption = PSMarkdownOptionInfoCache.Get(this.CommandInfo); bool?supportsVT100 = this.Host?.UI.SupportsVirtualTerminal; // supportsVT100 == null if the host is null. // supportsVT100 == false if host does not support VT100. if (supportsVT100 != true) { _mdOption.EnableVT100Encoding = false; } if (AsVT100EncodedString) { _conversionType = MarkdownConversionType.VT100; } }
/// <summary> /// Override EndProcessing. /// </summary> protected override void EndProcessing() { WriteObject(PSMarkdownOptionInfoCache.Get(this.CommandInfo)); }