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; }
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); }
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); }
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)); }
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); } }
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; }
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; } }