Skip to content

CodeElement

Represents an inline markdown code block.

Extends

  • AbstractMarkdownLiteral

Constructors

new CodeElement()

new CodeElement(apiInstance, content): CodeElement

Parameters

Parameter Type

apiInstance

API

content

string

Returns

CodeElement

Overrides

AbstractMarkdownLiteral.constructor

Defined in

jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:220

Properties

apiInstance

readonly apiInstance: API

Inherited from

AbstractMarkdownLiteral.apiInstance

Defined in

jsEngine/api/markdown/AbstractMarkdownElement.ts:9


content

content: string

Defined in

jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:218

Methods

toMarkdown()

toMarkdown(): MarkdownString

Converts the element to a MarkdownString.

Returns

MarkdownString

Inherited from

AbstractMarkdownLiteral.toMarkdown

Defined in

jsEngine/api/markdown/AbstractMarkdownElement.ts:28


toString()

toString(): string

Converts the element to a string.

Returns

string

Overrides

AbstractMarkdownLiteral.toString

Defined in

jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:226