TextElement
Represents a piece of pure markdown text.
Extends
AbstractMarkdownLiteral
Constructors
new TextElement()
new TextElement(
content
,bold
,cursive
,underline
):TextElement
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
Overrides
AbstractMarkdownLiteral.constructor
Defined in
jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:132
Properties
bold
bold:
boolean
Defined in
jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:128
content
content:
string
Defined in
jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:127
cursive
cursive:
boolean
Defined in
jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:129
underline
underline:
boolean
Defined in
jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:130
Methods
toMarkdown()
toMarkdown():
MarkdownString
Converts the element to a MarkdownString.
Returns
Inherited from
AbstractMarkdownLiteral.toMarkdown
Defined in
jsEngine/api/markdown/AbstractMarkdownElement.ts:21
toString()
toString():
string
Converts the element to a string.
Returns
string
Overrides
AbstractMarkdownLiteral.toString
Defined in
jsEngine/api/markdown/AbstractMarkdownElementContainer.ts:141