public override async Task WriteMarkdown(XmlDocWriteContext context, MarkdownWriter writer) { await writer.BeginParagraphAsync(); foreach (var node in Content) { await node.WriteMarkdown(context, writer); } await writer.EndParagraphAsync(); }
public override async Task WriteMarkdown(XmlDocWriteContext context, MarkdownWriter writer) { context.BeginPreservingWhitespace(); await writer.WriteLineAsync("```csharp"); await base.WriteMarkdown(context, writer); await writer.WriteLineAsync("```"); context.EndPreservingWhitespace(); }
public override async Task WriteMarkdown(XmlDocWriteContext context, MarkdownWriter writer) { await writer.WriteAsync(" "); var entry = context.ResolveReference(TextValue); if (entry.Key == null) { await writer.WriteAsync(entry.Value ?? TextValue); } else { await writer.WriteAsync(MarkdownInline.HRef(entry.Value, entry.Key)); } await writer.WriteAsync(" "); }
public abstract Task WriteMarkdown(XmlDocWriteContext context, MarkdownWriter writer);