/// <summary> /// Initializes a new instance of <see cref="MdTaskListItem"/> containing the specified content. /// </summary> /// <param name="content">The block to initially add to the list item.</param> public MdTaskListItem(MdContainerBlockBase content) : base(content) { }
/// <summary> /// Initializes a new instance of <see cref="MdAdmonition"/> with the specified type and content. /// </summary> /// /// <param name="type"> /// The admonition's type. Any non-empty string is allowed. /// Recommended values are <c>attention</c>, <c>caution</c>, <c>danger</c>, <c>error</c>, /// <c>hint</c>, <c>important</c>, <c>note</c>, <c>tip</c> and <c>warning</c> /// </param> /// /// <param name="content"> /// The admonition's content. /// </param> /// /// <exception cref="ArgumentException">Thrown when <paramref name="type"/> is null or whitespace.</exception> public MdAdmonition(string type, MdContainerBlockBase content) : this(type, MdEmptySpan.Instance, (MdBlock)content) { }
public static MdAdmonition Admonition(string type, MdSpan title, MdContainerBlockBase content) => new MdAdmonition(type, title, content);
/// <summary> /// Initializes a new instance of <see cref="MdAdmonition"/>. /// </summary> /// /// <param name="type"> /// The admonition's type. Any non-empty string is allowed. /// Recommended values are <c>attention</c>, <c>caution</c>, <c>danger</c>, <c>error</c>, /// <c>hint</c>, <c>important</c>, <c>note</c>, <c>tip</c> and <c>warning</c> /// </param> /// /// <param name="title"> /// The admonition's title. To create a admonition without title, use a different constructor overload. /// </param> /// /// <param name="content"> /// The admonition's content. /// </param> /// /// <exception cref="ArgumentException">Thrown when <paramref name="type"/> is null or whitespace.</exception> /// <exception cref="ArgumentNullException">Thrown when <paramref name="title"/> is <c>null</c>.</exception> public MdAdmonition(string type, MdSpan title, MdContainerBlockBase content) : this(type, title, (MdBlock)content) { }