-
Notifications
You must be signed in to change notification settings - Fork 10
ContainerOfInlineElements
Children.CMarkNodeChildIterator.ContainerOfBlocks.Document.BlockQuote.ContainerOfBlocks.ContainerOfInlineElements
public protocol ContainerOfInlineElements: Node
Children.CMarkNodeChildIterator.ContainerOfBlocks
, Node
Adds an inline element to the beginning of the block's children.
@discardableResult public func prepend(child: Inline & Node) -> Bool
- child: The inline element to add.
true
if successful, otherwise false
.
Inserts a node to the list item's children before a specified sibling.
@discardableResult public func insert(child: Node, before sibling: Node) -> Bool
- child: The block to add.
- sibling: The child before which the block is added
true
if successful, otherwise false
.
Adds an inline element to the end of the block's children.
@discardableResult public func append(child: Inline & Node) -> Bool
- child: The inline element to add.
true
if successful, otherwise false
.
Removes an inline element from the block's children.
@discardableResult public func remove(child: Inline & Node) -> Bool
- child: The inline element to remove.
true
if successful, otherwise false
.
Inserts a block to the block's children after a specified sibling.
@discardableResult public func insert(child: Item, after sibling: Item) -> Bool
- child: The block to add.
- sibling: The child after which the block is added
true
if successful, otherwise false
.
Inserts a block to the block's children before a specified sibling.
@discardableResult public func insert(child: Item, before sibling: Item) -> Bool
- child: The block to add.
- sibling: The child before which the block is added
true
if successful, otherwise false
.
Adds a block to the end of the block's children.
@discardableResult public func append(child: Item) -> Bool
- child: The block to add.
true
if successful, otherwise false
.
Removes a node from the list item's children.
@discardableResult public func remove(child: Node) -> Bool
- child: The block to remove.
true
if successful, otherwise false
.
The list item's children.
var children: [Node]
Adds a node to the end of the list item's children.
@discardableResult public func append(child: Node) -> Bool
- child: The block to add.
true
if successful, otherwise false
.
Adds a block to the beginning of the block's children.
@discardableResult public func prepend(child: Item) -> Bool
- child: The block to add.
true
if successful, otherwise false
.
Adds a node to the beginning of the list item's children.
@discardableResult public func prepend(child: Node) -> Bool
- child: The block to add.
true
if successful, otherwise false
.
Removes a block from the block's children.
@discardableResult public func remove(child: Item) -> Bool
- child: The block to remove.
true
if successful, otherwise false
.
Inserts an inline element to the block's children after a specified sibling.
@discardableResult public func insert(child: Inline & Node, after sibling: Inline & Node) -> Bool
- child: The inline element to add.
- sibling: The child after which the inline element is added
true
if successful, otherwise false
.
The block's children.
var children: [Inline & Node]
Inserts an inline element to the block's children before a specified sibling.
@discardableResult public func insert(child: Inline & Node, before sibling: Inline & Node) -> Bool
- child: The inline element to add.
- sibling: The child before which the inline element is added
true
if successful, otherwise false
.
The block's children.
var children: [Item]
Inserts a node to the list item's children after a specified sibling.
@discardableResult public func insert(child: Node, after sibling: Node) -> Bool
- child: The block to add.
- sibling: The child after which the block is added
true
if successful, otherwise false
.
Generated at 2021-03-03T19:19:22+0000 using swift-doc 1.0.0-beta.5.
Types
- BlockQuote
- Code
- CodeBlock
- CommonMarkBuilder
- Document
- Document.Error
- Document.ParsingOptions
- Document.Position
- Emphasis
- ForEach
- Fragment
- HTMLBlock
- HardLineBreak
- Heading
- Image
- Link
- List
- List.Delimiter
- List.Item
- List.Kind
- Node
- Node.RenderingFormat
- Node.RenderingOptions
- Paragraph
- RawHTML
- Section
- SoftLineBreak
- StringBuilder
- Strong
- Text
- ThematicBreak
- VisitorContinueKind