Skip to content

CodeElement

Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:217

Represents an inline markdown code block.

Extends

  • AbstractMarkdownLiteral

Constructors

new CodeElement()

new CodeElement(apiInstance, content): CodeElement

Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:220

Parameters

Parameter Type

apiInstance

API

content

string

Returns

CodeElement

Overrides

AbstractMarkdownLiteral.constructor

Properties

apiInstance

readonly apiInstance: API

Defined in: jsEngine/api/markdown/AbstractMarkdownElement.ts:9

Inherited from

AbstractMarkdownLiteral.apiInstance


content

content: string

Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:218

Methods

toMarkdown()

toMarkdown(): MarkdownString

Defined in: jsEngine/api/markdown/AbstractMarkdownElement.ts:28

Converts the element to a MarkdownString.

Returns

MarkdownString

Inherited from

AbstractMarkdownLiteral.toMarkdown


toString()

toString(): string

Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:226

Converts the element to a string.

Returns

string

Overrides

AbstractMarkdownLiteral.toString