This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
ContainerOfInlineElements
mattt edited this page Jan 25, 2020
·
11 revisions
public protocol ContainerOfInlineElements: Node
Node
, CustomStringConvertible
, Equatable
, Hashable
var description: String
The block's children.
var children: [Inline & Node]
public static func ==(lhs: Node, rhs: Node) -> Bool
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
.
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
.
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
.
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
.
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
.
public func hash(into hasher: inout Hasher)
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