Ejemplo n.º 1
0
            private void VisitList(MdList list)
            {
                PushNewNode(list);

                foreach (var listItem in list)
                {
                    listItem.Accept(this);
                }

                PopNode();
            }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of <see cref="MdListItem"/> containing the specified content.
 /// </summary>
 /// <param name="content">The list to initially add to the list item.</param>
 public MdListItem(MdList content) : base(content)
 {
 }
Ejemplo n.º 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(MdList content) : base(content)
 {
 }
Ejemplo n.º 4
0
 // private protected constructor => class cannot be derived from outside this assembly
 private protected MdContainerBlockBase(MdList content) : this((MdBlock)content)
 {
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Creates a new instance of <see cref="MdDocument"/> with the specified content.
 /// </summary>
 /// <remarks>
 /// MdList implements <see cref="IEnumerable{MdListItem}"/> so this constructor is necessary to prevent ambiguities.
 /// </remarks>
 public static MdDocument Document(MdList list) => new MdDocument(list);
Ejemplo n.º 6
0
 // private protected constructor => class cannot be derived from outside this assembly
 private protected MdListItemBase(MdList content) : base(content)
 {
 }
Ejemplo n.º 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(MdList content) => new MdContainerBlock(content);
Ejemplo n.º 8
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(MdList content) => new MdBlockQuote(content);
Ejemplo n.º 9
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(MdList content) => new MdListItem(content);
Ejemplo n.º 10
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(MdList content) : base(content)
 {
 }