示例#1
0
 public virtual StringBuffer Render(IMarkdownRenderer render, MarkdownHtmlBlockToken token, MarkdownBlockContext context)
 {
     StringBuffer content = StringBuffer.Empty;
     foreach(var t in token.Content.Tokens)
     {
         content += render.Render(t);
     }
     return content;
 }
示例#2
0
        public virtual StringBuffer Render(IMarkdownRenderer renderer, MarkdownHtmlBlockToken token, MarkdownBlockContext context)
        {
            var result = StringBuffer.Empty;

            foreach (var item in token.Content.Tokens)
            {
                result += renderer.Render(item);
            }
            return(result);
        }
示例#3
0
        public virtual StringBuffer Render(IMarkdownRenderer render, MarkdownHtmlBlockToken token, MarkdownBlockContext context)
        {
            StringBuffer content = StringBuffer.Empty;

            foreach (var t in token.Content.Tokens)
            {
                content += render.Render(t);
            }
            return(content);
        }
示例#4
0
        public virtual StringBuffer Render(IMarkdownRenderer renderer, MarkdownHtmlBlockToken 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 virtual StringBuffer Render(IMarkdownRenderer renderer, MarkdownHtmlBlockToken token, MarkdownBlockContext context)
        {
            var childContent = StringBuffer.Empty;

            foreach (var item in token.Content.Tokens)
            {
                childContent += renderer.Render(item);
            }
            return(this.Insert("Html", childContent, Type.NonLeaf));
        }
示例#6
0
 public virtual StringBuffer Render(MarkdownEngine engine, MarkdownHtmlBlockToken token, MarkdownBlockContext context)
 {
     if (!token.Pre && !engine.Options.Pedantic)
     {
         var c      = engine.SwitchContext(context.InlineContext);
         var result = engine.Mark(token.Content);
         engine.SwitchContext(c);
         return(result);
     }
     else
     {
         return(token.Content);
     }
 }
示例#7
0
 public virtual StringBuffer Render(IMarkdownRenderer engine, MarkdownHtmlBlockToken token, MarkdownBlockContext context)
 {
     var result = StringBuffer.Empty;
     foreach (var item in token.Content.Tokens)
     {
         result += engine.Render(item);
     }
     return result;
 }
示例#8
0
 public virtual StringBuffer Render(MarkdownEngine engine, MarkdownHtmlBlockToken token, MarkdownBlockContext context)
 {
     if (!token.Pre && !engine.Options.Pedantic)
     {
         var c = engine.SwitchContext(context.InlineContext);
         var result = engine.Mark(token.Content);
         engine.SwitchContext(c);
         return result;
     }
     else
     {
         return token.Content;
     }
 }