@@ -114,6 +114,8 @@ pub enum BuiltinFunction {
114114 StopTimer ,
115115 RestartTimer ,
116116 OpenUrl ,
117+ ParseMarkdown ,
118+ EscapeMarkdown ,
117119}
118120
119121#[ derive( Debug , Clone ) ]
@@ -273,7 +275,9 @@ declare_builtin_function_types!(
273275 StartTimer : ( Type :: ElementReference ) -> Type :: Void ,
274276 StopTimer : ( Type :: ElementReference ) -> Type :: Void ,
275277 RestartTimer : ( Type :: ElementReference ) -> Type :: Void ,
276- OpenUrl : ( Type :: String ) -> Type :: Void
278+ OpenUrl : ( Type :: String ) -> Type :: Void ,
279+ EscapeMarkdown : ( Type :: String ) -> Type :: String ,
280+ ParseMarkdown : ( Type :: String ) -> Type :: StyledText
277281) ;
278282
279283impl BuiltinFunction {
@@ -370,6 +374,7 @@ impl BuiltinFunction {
370374 BuiltinFunction :: StopTimer => false ,
371375 BuiltinFunction :: RestartTimer => false ,
372376 BuiltinFunction :: OpenUrl => false ,
377+ BuiltinFunction :: ParseMarkdown | BuiltinFunction :: EscapeMarkdown => false ,
373378 }
374379 }
375380
@@ -448,6 +453,7 @@ impl BuiltinFunction {
448453 BuiltinFunction :: StopTimer => false ,
449454 BuiltinFunction :: RestartTimer => false ,
450455 BuiltinFunction :: OpenUrl => false ,
456+ BuiltinFunction :: ParseMarkdown | BuiltinFunction :: EscapeMarkdown => true ,
451457 }
452458 }
453459}
0 commit comments