TextElement
Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:169
Represents a piece of pure markdown text.
Extends
AbstractMarkdownLiteral
Constructors
new TextElement()
new TextElement(
apiInstance,content,bold,cursive,underline,highlight):TextElement
Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:176
Parameters
| Parameter | Type |
|---|---|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns
Overrides
AbstractMarkdownLiteral.constructor
Properties
apiInstance
readonlyapiInstance:API
Defined in: jsEngine/api/markdown/AbstractMarkdownElement.ts:9
Inherited from
AbstractMarkdownLiteral.apiInstance
bold
bold:
boolean
Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:171
content
content:
string
Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:170
cursive
cursive:
boolean
Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:172
highlight
highlight:
boolean
Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:174
underline
underline:
boolean
Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:173
Methods
toMarkdown()
toMarkdown():
MarkdownString
Defined in: jsEngine/api/markdown/AbstractMarkdownElement.ts:28
Converts the element to a MarkdownString.
Returns
Inherited from
AbstractMarkdownLiteral.toMarkdown
toString()
toString():
string
Defined in: jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:186
Converts the element to a string.
Returns
string
Overrides
AbstractMarkdownLiteral.toString