コード例 #1
0
ファイル: HtmlRenderer.cs プロジェクト: stuartleeks/docfx
        public virtual StringBuffer Render(IMarkdownRenderer renderer, MarkdownNonParagraphBlockToken token, MarkdownBlockContext context)
        {
            var result = StringBuffer.Empty;

            foreach (var item in token.Content.Tokens)
            {
                result += renderer.Render(item);
            }
            return(result);
        }
コード例 #2
0
        public virtual StringBuffer Render(IMarkdownRenderer renderer, MarkdownNonParagraphBlockToken token, MarkdownBlockContext context)
        {
            var childContent = StringBuffer.Empty;

            foreach (var item in token.Content.Tokens)
            {
                childContent += renderer.Render(item);
            }
            return(Insert(token, ExposeTokenName(token), childContent));
        }
コード例 #3
0
        public virtual StringBuffer Render(IMarkdownRenderer render, MarkdownNonParagraphBlockToken token, MarkdownBlockContext context)
        {
            StringBuffer content = StringBuffer.Empty;

            foreach (var t in token.Content.Tokens)
            {
                content += render.Render(t);
            }
            return(content + "\n");
        }
コード例 #4
0
        public virtual StringBuffer Render(IMarkdownRenderer renderer, MarkdownNonParagraphBlockToken token, MarkdownBlockContext context)
        {
            var childContent = StringBuffer.Empty;

            foreach (var item in token.Content.Tokens)
            {
                childContent += renderer.Render(item);
            }
            return(this.Insert("NonParagraph", childContent, Type.NonLeaf));
        }