Exemple #1
0
 public virtual StringBuffer Render(IMarkdownRenderer render, MarkdownParagraphBlockToken token, MarkdownBlockContext context)
 {
     var content = StringBuffer.Empty;
     foreach (var t in token.InlineTokens.Tokens)
     {
         content += render.Render(t);
     }
     return content + "\n\n";
 }
Exemple #2
0
        public virtual StringBuffer Render(IMarkdownRenderer render, MarkdownParagraphBlockToken token, MarkdownBlockContext context)
        {
            var content = StringBuffer.Empty;

            foreach (var t in token.InlineTokens.Tokens)
            {
                content += render.Render(t);
            }
            return(content + "\n\n");
        }
Exemple #3
0
        public virtual StringBuffer Render(IMarkdownRenderer renderer, MarkdownParagraphBlockToken token, MarkdownBlockContext context)
        {
            var childContent = StringBuffer.Empty;

            foreach (var item in token.InlineTokens.Tokens)
            {
                childContent += renderer.Render(item);
            }
            return(Insert(token, ExposeTokenName(token), childContent));
        }
        public virtual StringBuffer Render(IMarkdownRenderer renderer, MarkdownParagraphBlockToken token, MarkdownBlockContext context)
        {
            var childContent = StringBuffer.Empty;

            foreach (var item in token.InlineTokens.Tokens)
            {
                childContent += renderer.Render(item);
            }
            return(this.Insert("Paragraph", childContent, Type.NonLeaf));
        }
Exemple #5
0
        public virtual StringBuffer Render(MarkdownEngine engine, MarkdownParagraphBlockToken token, MarkdownBlockContext context)
        {
            StringBuffer result = "<p>";
            var          c      = engine.SwitchContext(context.InlineContext);

            result += engine.Mark(token.Content);
            engine.SwitchContext(c);
            result += "</p>\n";
            return(result);
        }
Exemple #6
0
        public virtual StringBuffer Render(IMarkdownRenderer renderer, MarkdownParagraphBlockToken token, MarkdownBlockContext context)
        {
            StringBuffer result = "<p>";

            foreach (var item in token.InlineTokens.Tokens)
            {
                result += renderer.Render(item);
            }
            result += "</p>\n";
            return(result);
        }
Exemple #7
0
 public virtual StringBuffer Render(IMarkdownRenderer engine, MarkdownParagraphBlockToken token, MarkdownBlockContext context)
 {
     StringBuffer result = "<p>";
     foreach (var item in token.InlineTokens.Tokens)
     {
         result += engine.Render(item);
     }
     result += "</p>\n";
     return result;
 }
Exemple #8
0
 public virtual StringBuffer Render(MarkdownEngine engine, MarkdownParagraphBlockToken token, MarkdownBlockContext context)
 {
     StringBuffer result = "<p>";
     var c = engine.SwitchContext(context.InlineContext);
     result += engine.Mark(token.Content);
     engine.SwitchContext(c);
     result += "</p>\n";
     return result;
 }