@@ -42,7 +42,7 @@ export type RDTIcon = RDTNode & {
4242export  type  RDTText  =  RDTNode  &  { 
4343  kind : 'text' ; 
4444  text : string ; 
45-   prefix ? : string ; 
45+   prefix : string ; 
4646  params ?: Record < string ,  string > ; 
4747} ; 
4848
@@ -116,14 +116,14 @@ export function parseCells(src: string, offset: number): RDTCell[] {
116116} 
117117
118118export  function  parseCell ( src : string ,  offset : number ) : RDTCell  { 
119-   const  [ ,  name  =  '' ,  link ,  params ]  =  src . match ( / ^ ( .* ?) (?: ! @ ( .+ ?) ) ? (?: ! _ ( .+ ?) ) ? $ / )  ??  [ ] ; 
119+   const  [ ,  icons  =  '' ,  link ,  params ]  =  src . match ( / ^ ( .* ?) (?: ! @ ( .+ ?) ) ? (?: ! _ ( .+ ?) ) ? $ / )  ??  [ ] ; 
120120
121121  return  { 
122122    kind : 'cell' , 
123123    src, 
124124    offset, 
125125    length : src . length , 
126-     icons : parseIcons ( name ,  offset ) , 
126+     icons : parseIcons ( icons ,  offset ) , 
127127    link, 
128128    params : parseParams ( params ) , 
129129  } ; 
@@ -151,7 +151,7 @@ export function parseIcon(src: string, offset: number): RDTIcon {
151151} 
152152
153153export  function  parseText ( src : string ,  offset : number ) : RDTText  { 
154-   const  [ ,  prefix ,  text  =  '' ,  params ]  =  src . match ( / ^ ( .* ?) \* ( .* ?) (?: _ _ ( .+ ) ) ? $ / )  ??  [ ] ; 
154+   const  [ ,  prefix   =   '' ,  text  =  '' ,  params ]  =  src . match ( / ^ ( .* ?) \* ( .* ?) (?: _ _ ( .+ ) ) ? $ / )  ??  [ ] ; 
155155
156156  return  { 
157157    kind : 'text' , 
0 commit comments