/// <summary> /// Move HTML attributes and Forkdown settings from this element to another. /// </summary> /// <param name="element">Target element.</param> public virtual void MoveAttributesTo(Element element) { element.Attributes = this.Attributes; element.ExplicitIds = this.ExplicitIds; this.Attributes = new ElementAttributes(); this.ExplicitIds = Nil.LStr; }
protected Element(IMarkdownObject mdo) : this() { this.Attributes = new ElementAttributes(mdo.GetAttributes(), this); }