Beispiel #1
0
            public void VisitContainer(MdContainerBlockBase block)
            {
                PushNewNode(block);

                foreach (var item in block)
                {
                    item.Accept(this);
                }

                PopNode();
            }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="MdListItem"/> containing the specified content.
 /// </summary>
 /// <param name="content">The block to initially add to the list item.</param>
 public MdListItem(MdContainerBlockBase content) : base(content)
 {
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of <see cref="MdContainerBlock"/> with the specified content.
 /// </summary>
 /// <param name="content">The block to add to the container.</param>
 public MdContainerBlock(MdContainerBlockBase content) : base(content)
 {
 }
Beispiel #4
0
 // private protected constructor => class cannot be derived from outside this assembly
 private protected MdContainerBlockBase(MdContainerBlockBase content) : this((MdBlock)content)
 {
 }
Beispiel #5
0
 // private protected constructor => class cannot be derived from outside this assembly
 private protected MdListItemBase(MdContainerBlockBase content) : base(content)
 {
 }
Beispiel #6
0
 /// <summary>
 /// Creates a new instance of <see cref="MdBlockQuote"/> with the specified content.
 /// </summary>
 /// <param name="content">The block to add to the block quote.</param>
 public static MdBlockQuote BlockQuote(MdContainerBlockBase content) => new MdBlockQuote(content);
Beispiel #7
0
 /// <summary>
 /// Creates a new instance of <see cref="MdContainerBlock"/> with the specified content.
 /// </summary>
 /// <param name="content">The block to add to the container.</param>
 public static MdContainerBlock Container(MdContainerBlockBase content) => new MdContainerBlock(content);
Beispiel #8
0
 /// <summary>
 /// Creates a new instance of <see cref="MdListItem"/> containing the content.
 /// </summary>
 /// <param name="content">The block to initially add to the list item.</param>
 public static MdListItem ListItem(MdContainerBlockBase content) => new MdListItem(content);
Beispiel #9
0
 /// <summary>
 /// Initializes a new instance of <see cref="MdBlockQuote"/> with the specified content.
 /// </summary>
 /// <param name="content">The block to initially add to the block quote.</param>
 public MdBlockQuote(MdContainerBlockBase content) : base(content)
 {
 }