public virtual StringBuffer Render(IMarkdownRenderer renderer, DfmIncludeBlockToken token, MarkdownBlockContext context) { lock (_blockInclusionHelper) { return(_blockInclusionHelper.Load(renderer, token.Src, token.Raw, token.SourceInfo, context, (DfmEngine)renderer.Engine)); } }
public virtual StringBuffer Render(IMarkdownRenderer renderer, DfmIncludeBlockToken token, MarkdownBlockContext context) { lock (_blockInclusionHelper) { return _blockInclusionHelper.Load(renderer, token.Src, token.Raw, token.SourceInfo, context, (DfmEngine)renderer.Engine); } }
public virtual StringBuffer Render(IMarkdownRenderer renderer, DfmIncludeBlockToken token, MarkdownBlockContext context) { var href = token.Src == null ? null : $"src=\"{StringHelper.HtmlEncode(token.Src)}\""; var name = token.Name == null ? null : StringHelper.HtmlEncode(token.Name); var title = token.Title == null ? null : $"title=\"{StringHelper.HtmlEncode(token.Title)}\""; var resolved = _blockInclusionHelper.Load(renderer, token.Src, token.Raw, context, ((DfmEngine)renderer.Engine).InternalMarkup); return resolved; }
public virtual StringBuffer Render(IMarkdownRenderer render, DfmIncludeBlockToken token, MarkdownBlockContext context) { var src = token.Src.Replace(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); return string.IsNullOrEmpty(token.Title) ? $"[!INCLUDE [{token.Name}]({src})]\n\n" : $"[!INCLUDE [{token.Name}]({src} \"{token.Title}\")]\n\n"; }
public virtual StringBuffer Render(IMarkdownRenderer render, DfmIncludeBlockToken token, MarkdownBlockContext context) { return(string.IsNullOrEmpty(token.Title) ? $"[!INCLUDE [{token.Name}]({token.Src})]\n\n" : $"[!INCLUDE [{token.Name}]({token.Src} \"{token.Title}\")]\n\n"); }
public virtual StringBuffer Render(IMarkdownRenderer render, DfmIncludeBlockToken token, MarkdownBlockContext context) { return string.IsNullOrEmpty(token.Title) ? $"[!INCLUDE [{token.Name}]({token.Src})]\n" : $"[!INCLUDE [{token.Name}]({token.Src} \"{token.Title}\")]\n"; }
public virtual StringBuffer Render(IMarkdownRenderer renderer, DfmIncludeBlockToken token, MarkdownBlockContext context) { var resolved = _blockInclusionHelper.Load(renderer, token.Src, token.Raw, context, ((DfmEngine)renderer.Engine).InternalMarkup); return(resolved); }
public virtual StringBuffer Render(IMarkdownRenderer renderer, DfmIncludeBlockToken token, MarkdownBlockContext context) { var resolved = _blockInclusionHelper.Load(renderer, token.Src, token.Raw, context, ((DfmEngine)renderer.Engine).InternalMarkup); return resolved; }
public virtual StringBuffer Render(IMarkdownRenderer renderer, DfmIncludeBlockToken token, MarkdownBlockContext context) { return Insert(token, ExposeTokenNameInDfm(token)); }
public virtual StringBuffer Render(IMarkdownRenderer renderer, DfmIncludeBlockToken token, MarkdownBlockContext context) { return(Insert(token, ExposeTokenNameInDfm(token))); }