@@ -53,7 +53,7 @@ export class MarkdownAPI {
53
53
public createText ( text : string ) : TextElement {
54
54
validateAPIArgs ( z . object ( { text : z . string ( ) } ) , { text } ) ;
55
55
56
- return new TextElement ( this . apiInstance , text , false , false , false ) ;
56
+ return new TextElement ( this . apiInstance , text , false , false , false , false ) ;
57
57
}
58
58
59
59
/**
@@ -64,7 +64,7 @@ export class MarkdownAPI {
64
64
public createBoldText ( text : string ) : TextElement {
65
65
validateAPIArgs ( z . object ( { text : z . string ( ) } ) , { text } ) ;
66
66
67
- return new TextElement ( this . apiInstance , text , true , false , false ) ;
67
+ return new TextElement ( this . apiInstance , text , true , false , false , false ) ;
68
68
}
69
69
70
70
/**
@@ -75,7 +75,7 @@ export class MarkdownAPI {
75
75
public createCursiveText ( text : string ) : TextElement {
76
76
validateAPIArgs ( z . object ( { text : z . string ( ) } ) , { text } ) ;
77
77
78
- return new TextElement ( this . apiInstance , text , false , true , false ) ;
78
+ return new TextElement ( this . apiInstance , text , false , true , false , false ) ;
79
79
}
80
80
81
81
/**
@@ -86,7 +86,18 @@ export class MarkdownAPI {
86
86
public createUnderlinedText ( text : string ) : TextElement {
87
87
validateAPIArgs ( z . object ( { text : z . string ( ) } ) , { text } ) ;
88
88
89
- return new TextElement ( this . apiInstance , text , false , false , true ) ;
89
+ return new TextElement ( this . apiInstance , text , false , false , true , false ) ;
90
+ }
91
+
92
+ /**
93
+ * Creates a new markdown text element with highlighted formatting.
94
+ *
95
+ * @param text
96
+ */
97
+ public createHighlightedText ( text : string ) : TextElement {
98
+ validateAPIArgs ( z . object ( { text : z . string ( ) } ) , { text } ) ;
99
+
100
+ return new TextElement ( this . apiInstance , text , false , false , false , true ) ;
90
101
}
91
102
92
103
/**
@@ -151,7 +162,7 @@ export class MarkdownAPI {
151
162
* @param args the callout args, optional
152
163
* @param collapsed whether the callout should be collapsed by default, optional
153
164
*/
154
- createCollapsibleCallout ( title : string , type : string , args : string = '' , collapsed : boolean = false ) : CalloutElement {
165
+ public createCollapsibleCallout ( title : string , type : string , args : string = '' , collapsed : boolean = false ) : CalloutElement {
155
166
validateAPIArgs ( z . object ( { title : z . string ( ) , type : z . string ( ) , args : z . string ( ) , collapsed : z . boolean ( ) } ) , { title, type, args, collapsed } ) ;
156
167
157
168
return new CalloutElement ( this . apiInstance , title , type , args , true , collapsed ) ;
@@ -184,11 +195,18 @@ export class MarkdownAPI {
184
195
/**
185
196
* Creates a new markdown list element.
186
197
*
187
- * @param ordered whether the list should be ordered or not (use 1. or -)
198
+ * @param ordered whether the list should be ordered or not (use 1. or -), defaults to unordered
188
199
*/
189
- createList ( ordered : boolean ) : ListElement {
200
+ public createList ( ordered : boolean = false ) : ListElement {
190
201
validateAPIArgs ( z . object ( { ordered : z . boolean ( ) } ) , { ordered } ) ;
191
202
192
203
return new ListElement ( this . apiInstance , ordered ) ;
193
204
}
205
+
206
+ /**
207
+ * Creates a new ordered markdown list element.
208
+ */
209
+ public createOrderedList ( ) : ListElement {
210
+ return new ListElement ( this . apiInstance , true ) ;
211
+ }
194
212
}
0 commit comments