LineContext

class LineContext(builder: TextContentBuilder = TextContentBuilder())(source)

Context for building a single line of markdown with mixed formatting elements. Used within the line method to create complex inline formatting.

All methods return the context itself to allow for method chaining.

Constructors

Link copied to clipboard
constructor(builder: TextContentBuilder = TextContentBuilder())

Functions

Link copied to clipboard

Adds bold text (text) to the line.

Link copied to clipboard

Adds a code span (code) to the line.

Link copied to clipboard

Adds an image () to the line.

Link copied to clipboard

Adds italic text (text) to the line.

Link copied to clipboard

Adds a link (text) to the line.

Link copied to clipboard

Adds a space to the line.

Link copied to clipboard

Adds strikethrough text (text) to the line.

Link copied to clipboard

Adds plain text to the line.