Beispiel #1
0
        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();
        }
Beispiel #2
0
        public override async Task WriteMarkdown(XmlDocWriteContext context, MarkdownWriter writer)
        {
            context.BeginPreservingWhitespace();
            await writer.WriteAsync("`");

            await base.WriteMarkdown(context, writer);

            await writer.WriteAsync("`");

            context.EndPreservingWhitespace();
        }
Beispiel #3
0
        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(" ");
        }
Beispiel #4
0
 public abstract Task WriteMarkdown(XmlDocWriteContext context, MarkdownWriter writer);