Exemplo n.º 1
0
        /// <summary>
        /// Adds an ordered list for <see cref="MdDocument"/> instance
        /// </summary>
        /// <param name="document">Instance of <see cref="MdDocument"/> class</param>
        /// <param name="args">An array of objects to write using format</param>
        public static void OrderedList(this MdDocument document, params string[] args)
        {
            for (var i = 0; i < args.Length; i++)
            {
                var item = args[i];

                document.Lines.Add(new Line(Md.Item(string.Format("{0}.", i + 1), item)));
            }

            document.Lines.Add(new Line());
        }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a header 6 string for <see cref="MdDocument"/> instance
 /// </summary>
 /// <param name="document">Instance of <see cref="MdDocument"/> class</param>
 /// <param name="value">Input string</param>
 /// <param name="args">An array of objects to write using format</param>
 public static void H6(this MdDocument document, string value, params string[] args)
 {
     document.Lines.Add(new Line(Md.H6(value)));
     document.Lines.Add(new Line());
 }
Exemplo n.º 3
0
 /// <summary>
 /// Adds a header 1 string for <see cref="MdDocument"/> instance
 /// </summary>
 /// <param name="document">Instance of <see cref="MdDocument"/> class</param>
 /// <param name="value">Input string</param>
 /// <param name="args">An array of objects to write using format</param>
 public static void H1(this MdDocument document, string value, params string[] args)
 {
     document.Lines.Add(new Line(Md.H1(string.Format(value, args))));
     document.Lines.Add(new Line());
 }