Пример #1
0
 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))));
 }
Пример #2
0
 public static IMarkdown Add(this IMarkdown markdown, IMarkdown toAdd)
 {
     return Markdown.Create(() => markdown.Render() + toAdd.Render());
 }
Пример #3
0
 public static IMarkdown Create(IMarkdown markdown, string formatString)
 {
     return(new LazyMarkdown(() => new Markdown(string.Format(formatString, markdown.Render()))));
 }
Пример #4
0
 public static IMarkdown NewLine(this IMarkdown markdown)
 {
     return(Markdown.Create(() => markdown.Render() + "  " + Environment.NewLine));
 }
Пример #5
0
 public static IMarkdown Add(this IMarkdown markdown, IMarkdown toAdd)
 {
     return(Markdown.Create(() => markdown.Render() + toAdd.Render()));
 }
Пример #6
0
 public static IMarkdown Add(this IMarkdown markdown, CultureInfo culture, string toAdd, params object[] arguments)
 {
     return(Markdown.Create(() => markdown.Render() + string.Format(culture, toAdd, arguments)));
 }