@@ -53,7 +53,7 @@ export class MarkdownAPI {
5353 public createText ( text : string ) : TextElement {
5454 validateAPIArgs ( z . object ( { text : z . string ( ) } ) , { text } ) ;
5555
56- return new TextElement ( this . apiInstance , text , false , false , false ) ;
56+ return new TextElement ( this . apiInstance , text , false , false , false , false ) ;
5757 }
5858
5959 /**
@@ -64,7 +64,7 @@ export class MarkdownAPI {
6464 public createBoldText ( text : string ) : TextElement {
6565 validateAPIArgs ( z . object ( { text : z . string ( ) } ) , { text } ) ;
6666
67- return new TextElement ( this . apiInstance , text , true , false , false ) ;
67+ return new TextElement ( this . apiInstance , text , true , false , false , false ) ;
6868 }
6969
7070 /**
@@ -75,7 +75,7 @@ export class MarkdownAPI {
7575 public createCursiveText ( text : string ) : TextElement {
7676 validateAPIArgs ( z . object ( { text : z . string ( ) } ) , { text } ) ;
7777
78- return new TextElement ( this . apiInstance , text , false , true , false ) ;
78+ return new TextElement ( this . apiInstance , text , false , true , false , false ) ;
7979 }
8080
8181 /**
@@ -86,7 +86,18 @@ export class MarkdownAPI {
8686 public createUnderlinedText ( text : string ) : TextElement {
8787 validateAPIArgs ( z . object ( { text : z . string ( ) } ) , { text } ) ;
8888
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 ) ;
90101 }
91102
92103 /**
@@ -151,7 +162,7 @@ export class MarkdownAPI {
151162 * @param args the callout args, optional
152163 * @param collapsed whether the callout should be collapsed by default, optional
153164 */
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 {
155166 validateAPIArgs ( z . object ( { title : z . string ( ) , type : z . string ( ) , args : z . string ( ) , collapsed : z . boolean ( ) } ) , { title, type, args, collapsed } ) ;
156167
157168 return new CalloutElement ( this . apiInstance , title , type , args , true , collapsed ) ;
@@ -184,11 +195,18 @@ export class MarkdownAPI {
184195 /**
185196 * Creates a new markdown list element.
186197 *
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
188199 */
189- createList ( ordered : boolean ) : ListElement {
200+ public createList ( ordered : boolean = false ) : ListElement {
190201 validateAPIArgs ( z . object ( { ordered : z . boolean ( ) } ) , { ordered } ) ;
191202
192203 return new ListElement ( this . apiInstance , ordered ) ;
193204 }
205+
206+ /**
207+ * Creates a new ordered markdown list element.
208+ */
209+ public createOrderedList ( ) : ListElement {
210+ return new ListElement ( this . apiInstance , true ) ;
211+ }
194212}
0 commit comments