Example #1
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));
        }
        public override StringBuffer Render(IMarkdownRenderer render, MarkdownNonParagraphBlockToken token, MarkdownBlockContext context)
        {
            var source = token.SourceInfo.Markdown;

            if (source.EndsWith("\n"))
            {
                return(RenderInlineTokens(token.Content.Tokens, render) + "\n");
            }

            return(RenderInlineTokens(token.Content.Tokens, render));
        }
Example #3
0
 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;
 }
Example #4
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";
 }
Example #5
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);
 }