/// <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()); }
/// <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()); }
/// <summary> /// Adds a line 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 WriteLine(this MdDocument document, string value, params string[] args) { document.Lines.Add(new Line(value, args)); document.Lines.Add(new Line()); }