public static IMarkdown Code(this IMarkdown markdown) { return(Markdown.Create(() => string.Join( Environment.NewLine, markdown .Render() .Split(new[] { Environment.NewLine }, StringSplitOptions.None) .Select(x => "\t" + x)))); }
public static IMarkdown Add(this IMarkdown markdown, IMarkdown toAdd) { return Markdown.Create(() => markdown.Render() + toAdd.Render()); }
public static IMarkdown Create(IMarkdown markdown, string formatString) { return(new LazyMarkdown(() => new Markdown(string.Format(formatString, markdown.Render())))); }
public static IMarkdown NewLine(this IMarkdown markdown) { return(Markdown.Create(() => markdown.Render() + " " + Environment.NewLine)); }
public static IMarkdown Add(this IMarkdown markdown, IMarkdown toAdd) { return(Markdown.Create(() => markdown.Render() + toAdd.Render())); }
public static IMarkdown Add(this IMarkdown markdown, CultureInfo culture, string toAdd, params object[] arguments) { return(Markdown.Create(() => markdown.Render() + string.Format(culture, toAdd, arguments))); }